You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: csp-mixin/alerts/gcp-alerts.yml
-18Lines changed: 0 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,6 @@ groups:
15
15
description: 'The VM {{ $labels.instance_name }} is under heavy load and may become unresponsive.'
16
16
dashboard_uid: 'f115fe73641347c43415535d77e2dc0f'
17
17
18
-
- name: gcp
19
-
rules:
20
18
- alert: GcpCEHighIOLatency
21
19
expr: |
22
20
avg by (job,project_id,instance_id)(stackdriver_gce_instance_compute_googleapis_com_instance_disk_average_io_latency{job=~".+",project_id=~".+",instance_id=~".+"}) > 5000
@@ -31,8 +29,6 @@ groups:
31
29
description: 'Check {{ $labels.instance_id }} VM for I/O bottlenecks and upgrade to SSD if necessary.'
32
30
dashboard_uid: 'f115fe73641347c43415535d77e2dc0f'
33
31
34
-
- name: gcp
35
-
rules:
36
32
- alert: GcpCloudSQLHighCpu
37
33
expr: |
38
34
100 * avg by (job,project_id,instance,database_id) (stackdriver_cloudsql_database_cloudsql_googleapis_com_database_cpu_utilization{job=~".+",project_id=~".+",instance=~".+", database_id=~".+"}) > 80
@@ -47,8 +43,6 @@ groups:
47
43
description: 'Check {{ $labels.database_id }} database for high CPU queries and optimize them, or scale up the instance if sustained high usage.'
48
44
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
49
45
50
-
- name: gcp
51
-
rules:
52
46
- alert: GcpCloudSQLMemoryUsage
53
47
expr: |
54
48
100 * avg by (job,project_id,instance,database_id) (stackdriver_cloudsql_database_cloudsql_googleapis_com_database_memory_utilization{job=~".+",project_id=~".+",instance=~".+", database_id=~".+"}) > 85
@@ -63,8 +57,6 @@ groups:
63
57
description: 'Review high-memory queries or add more memory to the {{ $labels.database_id }} instance.'
64
58
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
65
59
66
-
- name: gcp
67
-
rules:
68
60
- alert: GcpCloudSQLDiskUsage
69
61
expr: |
70
62
100 * avg by (job,project_id,instance,database_id) (stackdriver_cloudsql_database_cloudsql_googleapis_com_database_disk_utilization{job=~".+",project_id=~".+",instance=~".+", database_id=~".+"}) > 85
@@ -79,8 +71,6 @@ groups:
79
71
description: 'Delete or archive unused data, or increase disk size to the {{ $labels.database_id }} database.'
80
72
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
81
73
82
-
- name: gcp
83
-
rules:
84
74
- alert: GcpCloudSQLActiveConnections
85
75
expr: |
86
76
avg by (job,project_id,instance, database_id) (stackdriver_cloudsql_database_cloudsql_googleapis_com_database_mysql_threads{thread_kind="THREADS_CONNECTED", job=~".+",project_id=~".+",instance=~".+", database_id=~".+"}) > 0.9 * avg by (job,project_id,instance, database_id) (stackdriver_cloudsql_database_cloudsql_googleapis_com_database_mysql_max_connections{job=~".+",project_id=~".+",instance=~".+", database_id=~".+"})
@@ -95,8 +85,6 @@ groups:
95
85
description: 'Investigate connection pooling settings and connection management in your {{ $labels.database_id }} application database.'
96
86
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
97
87
98
-
- name: gcp
99
-
rules:
100
88
- alert: GcpCloudSQLAbortedConnections
101
89
expr: |
102
90
sum by(job, instance, project_id)(rate(stackdriver_cloudsql_database_cloudsql_googleapis_com_database_mysql_aborted_connects_count[5m])) > 5
@@ -111,8 +99,6 @@ groups:
111
99
description: 'Verify credentials and network settings; check for firewall rules blocking connections for the {{ $labels.database_id }} database.'
112
100
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
113
101
114
-
- name: gcp
115
-
rules:
116
102
- alert: GcpCloudSQLLagSecondsBehindMaster
117
103
expr: |
118
104
avg by (job,project_id,instance, database_id) (stackdriver_cloudsql_database_cloudsql_googleapis_com_database_mysql_replication_seconds_behind_master) > 5
@@ -127,8 +113,6 @@ groups:
127
113
description: 'Check {{ $labels.database_id }} database for network latency between primary and replica; adjust configurations to optimize replication.'
128
114
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
129
115
130
-
- name: gcp
131
-
rules:
132
116
- alert: GcpPubSubNumUndeliveredMessages
133
117
expr: |
134
118
avg by (job,project_id,instance)(stackdriver_pubsub_subscription_pubsub_googleapis_com_subscription_num_undelivered_messages{job=~".+",project_id=~".+",instance=~".+"}) > 1000
@@ -143,8 +127,6 @@ groups:
143
127
description: 'Scale up subscribers or adjust message processing capacity for the {{ $labels.instance }} instance.'
144
128
dashboard_uid: '2abad1eb5e4873b95e9176e7ef10a30c'
145
129
146
-
- name: gcp
147
-
rules:
148
130
- alert: GcpPubSubUnackedMessageAge
149
131
expr: |
150
132
avg by (job,project_id,instance)(stackdriver_pubsub_subscription_pubsub_googleapis_com_subscription_oldest_unacked_message_age{job=~".+",project_id=~".+",instance=~".+"}) > 60
0 commit comments