@hiiretail/gcp-infra-cli 0.102.2 → 0.102.4
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:
|
|
@@ -166,9 +171,9 @@ cloud_sql:
|
|
|
166
171
|
subject: 'Database: `$${resource.label.database_id}`'
|
|
167
172
|
memorystore:
|
|
168
173
|
memory_over_50:
|
|
169
|
-
display_name: "[
|
|
174
|
+
display_name: "[P3] <%-clan%> - Memorystore | Memory over 50%"
|
|
170
175
|
conditions:
|
|
171
|
-
- display_name: Memorystore Redis Instance - Memory Usage above 50%
|
|
176
|
+
- display_name: Memorystore Redis Instance - Memory Usage above 50% for more than 5 minutes
|
|
172
177
|
condition_threshold:
|
|
173
178
|
filter: |
|
|
174
179
|
resource.type="redis_instance"
|
|
@@ -178,15 +183,16 @@ memorystore:
|
|
|
178
183
|
duration: 300s
|
|
179
184
|
aggregations:
|
|
180
185
|
- alignment_period: 60s
|
|
181
|
-
per_series_aligner:
|
|
186
|
+
per_series_aligner: ALIGN_MEAN
|
|
187
|
+
cross_series_reducer: REDUCE_MAX
|
|
182
188
|
group_by_fields:
|
|
183
189
|
- resource.label.instance_id
|
|
184
190
|
documentation:
|
|
185
191
|
subject: 'Instance: `$${resource.label.instance_id}`'
|
|
186
192
|
memory_over_75:
|
|
187
|
-
display_name: "[
|
|
193
|
+
display_name: "[P3] <%-clan%> - Memorystore | Memory over 75%"
|
|
188
194
|
conditions:
|
|
189
|
-
- display_name: Memorystore Redis Instance - Memory Usage above 75% for
|
|
195
|
+
- display_name: Memorystore Redis Instance - Memory Usage above 75% for more than 5 minutes
|
|
190
196
|
condition_threshold:
|
|
191
197
|
filter: |
|
|
192
198
|
resource.type="redis_instance"
|
|
@@ -196,7 +202,8 @@ memorystore:
|
|
|
196
202
|
duration: 300s
|
|
197
203
|
aggregations:
|
|
198
204
|
- alignment_period: 60s
|
|
199
|
-
per_series_aligner:
|
|
205
|
+
per_series_aligner: ALIGN_MEAN
|
|
206
|
+
cross_series_reducer: REDUCE_MAX
|
|
200
207
|
group_by_fields:
|
|
201
208
|
- resource.label.instance_id
|
|
202
209
|
documentation:
|
|
@@ -204,17 +211,18 @@ memorystore:
|
|
|
204
211
|
memory_over_90:
|
|
205
212
|
display_name: "[P2] <%-clan%> - Memorystore | Memory over 90%"
|
|
206
213
|
conditions:
|
|
207
|
-
- display_name: Memorystore Redis Instance - Memory Usage above 90%
|
|
214
|
+
- display_name: Memorystore Redis Instance - Memory Usage above 90% for more than 5 minutes
|
|
208
215
|
condition_threshold:
|
|
209
216
|
filter: |
|
|
210
217
|
resource.type="redis_instance"
|
|
211
218
|
metric.type="redis.googleapis.com/stats/memory/usage_ratio"
|
|
212
219
|
resource.labels.project_id="<%-projectId%>"
|
|
213
220
|
threshold_value: 0.90
|
|
214
|
-
duration:
|
|
221
|
+
duration: 300s
|
|
215
222
|
aggregations:
|
|
216
223
|
- alignment_period: 60s
|
|
217
|
-
per_series_aligner:
|
|
224
|
+
per_series_aligner: ALIGN_MEAN
|
|
225
|
+
cross_series_reducer: REDUCE_MAX
|
|
218
226
|
group_by_fields:
|
|
219
227
|
- resource.label.instance_id
|
|
220
228
|
documentation:
|