@hiiretail/gcp-infra-cli 0.102.3 → 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:
|