@hiiretail/gcp-infra-cli 0.102.3 → 0.102.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -41,7 +41,7 @@ cloud_sql:
|
|
|
41
41
|
cpu_over_65:
|
|
42
42
|
display_name: "[P3] <%-clan%> - CloudSQL | CPU over 65%"
|
|
43
43
|
conditions:
|
|
44
|
-
- display_name: Cloud SQL Database - CPU utilization above 65%
|
|
44
|
+
- display_name: Cloud SQL Database - CPU utilization above 65% for more than 5 minutes
|
|
45
45
|
condition_threshold:
|
|
46
46
|
filter: |
|
|
47
47
|
resource.type="cloudsql_database"
|
|
@@ -51,7 +51,8 @@ cloud_sql:
|
|
|
51
51
|
duration: 300s
|
|
52
52
|
aggregations:
|
|
53
53
|
- alignment_period: 60s
|
|
54
|
-
per_series_aligner:
|
|
54
|
+
per_series_aligner: ALIGN_MEAN
|
|
55
|
+
cross_series_reducer: REDUCE_MAX
|
|
55
56
|
group_by_fields:
|
|
56
57
|
- resource.label.database_id
|
|
57
58
|
documentation:
|
|
@@ -59,17 +60,18 @@ cloud_sql:
|
|
|
59
60
|
cpu_over_85:
|
|
60
61
|
display_name: "[P3] <%-clan%> - CloudSQL | CPU over 85%"
|
|
61
62
|
conditions:
|
|
62
|
-
- display_name: "Cloud SQL Database - CPU-usage above 85%
|
|
63
|
+
- display_name: "Cloud SQL Database - CPU-usage above 85% for more than 5 minutes"
|
|
63
64
|
condition_threshold:
|
|
64
65
|
filter: |
|
|
65
66
|
resource.type="cloudsql_database"
|
|
66
67
|
metric.type="cloudsql.googleapis.com/database/cpu/utilization"
|
|
67
68
|
resource.labels.project_id="<%-projectId%>"
|
|
68
69
|
threshold_value: 0.85
|
|
69
|
-
duration:
|
|
70
|
+
duration: 300s
|
|
70
71
|
aggregations:
|
|
71
72
|
- alignment_period: 60s
|
|
72
|
-
per_series_aligner:
|
|
73
|
+
per_series_aligner: ALIGN_MEAN
|
|
74
|
+
cross_series_reducer: REDUCE_MAX
|
|
73
75
|
group_by_fields:
|
|
74
76
|
- resource.label.database_id
|
|
75
77
|
documentation:
|
|
@@ -77,16 +79,18 @@ cloud_sql:
|
|
|
77
79
|
cpu_over_90:
|
|
78
80
|
display_name: "[P3] <%-clan%> - CloudSQL | CPU over 90%"
|
|
79
81
|
conditions:
|
|
80
|
-
- display_name: Cloud SQL Database - CPU-usage above 90%
|
|
82
|
+
- display_name: Cloud SQL Database - CPU-usage above 90% for more than 5 minutes
|
|
81
83
|
condition_threshold:
|
|
82
84
|
filter: |
|
|
83
85
|
resource.type="cloudsql_database"
|
|
84
86
|
metric.type="cloudsql.googleapis.com/database/cpu/utilization"
|
|
85
87
|
resource.labels.project_id="<%-projectId%>"
|
|
86
88
|
threshold_value: 0.9
|
|
89
|
+
duration: 300s
|
|
87
90
|
aggregations:
|
|
88
91
|
- alignment_period: 60s
|
|
89
|
-
per_series_aligner:
|
|
92
|
+
per_series_aligner: ALIGN_MEAN
|
|
93
|
+
cross_series_reducer: REDUCE_MAX
|
|
90
94
|
group_by_fields:
|
|
91
95
|
- resource.label.database_id
|
|
92
96
|
documentation:
|
|
@@ -94,7 +98,7 @@ cloud_sql:
|
|
|
94
98
|
memory_over_90:
|
|
95
99
|
display_name: "[P2] <%-clan%> - CloudSQL | Memory utilization above 90%"
|
|
96
100
|
conditions:
|
|
97
|
-
- display_name: Cloud SQL Database - Memory utilization above 90% for 5
|
|
101
|
+
- display_name: Cloud SQL Database - Memory utilization above 90% for more than 5 minutes
|
|
98
102
|
condition_threshold:
|
|
99
103
|
filter: |
|
|
100
104
|
resource.type = "cloudsql_database"
|
|
@@ -104,7 +108,8 @@ cloud_sql:
|
|
|
104
108
|
duration: 300s
|
|
105
109
|
aggregations:
|
|
106
110
|
- alignment_period: 60s
|
|
107
|
-
per_series_aligner:
|
|
111
|
+
per_series_aligner: ALIGN_MEAN
|
|
112
|
+
cross_series_reducer: REDUCE_MAX
|
|
108
113
|
group_by_fields:
|
|
109
114
|
- resource.label.database_id
|
|
110
115
|
documentation:
|
|
@@ -485,7 +490,7 @@ cloud_run:
|
|
|
485
490
|
duration: 300s
|
|
486
491
|
aggregations:
|
|
487
492
|
- alignment_period: 60s
|
|
488
|
-
per_series_aligner:
|
|
493
|
+
per_series_aligner: ALIGN_MEAN
|
|
489
494
|
cross_series_reducer: REDUCE_PERCENTILE_99
|
|
490
495
|
group_by_fields:
|
|
491
496
|
- resource.label.service_name
|
|
@@ -504,7 +509,7 @@ cloud_run:
|
|
|
504
509
|
duration: 300s
|
|
505
510
|
aggregations:
|
|
506
511
|
- alignment_period: 60s
|
|
507
|
-
per_series_aligner:
|
|
512
|
+
per_series_aligner: ALIGN_MEAN
|
|
508
513
|
cross_series_reducer: REDUCE_PERCENTILE_99
|
|
509
514
|
group_by_fields:
|
|
510
515
|
- resource.label.service_name
|
|
@@ -539,7 +544,7 @@ spanner:
|
|
|
539
544
|
resource.type = "spanner_instance"
|
|
540
545
|
metric.type = "spanner.googleapis.com/instance/cpu/utilization"
|
|
541
546
|
resource.labels.project_id="<%-projectId%>"
|
|
542
|
-
|
|
547
|
+
threshold_value: 0.8
|
|
543
548
|
duration: 300s
|
|
544
549
|
aggregations:
|
|
545
550
|
- alignment_period: 60s
|