Skip to content

Commit 6d92d21

Browse files
committed
fix lint for groupname
1 parent c9dd350 commit 6d92d21

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

csp-mixin/alerts/gcp-alerts.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ groups:
1515
description: 'The VM {{ $labels.instance_name }} is under heavy load and may become unresponsive.'
1616
dashboard_uid: 'f115fe73641347c43415535d77e2dc0f'
1717

18-
- name: gcp
19-
rules:
2018
- alert: GcpCEHighIOLatency
2119
expr: |
2220
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:
3129
description: 'Check {{ $labels.instance_id }} VM for I/O bottlenecks and upgrade to SSD if necessary.'
3230
dashboard_uid: 'f115fe73641347c43415535d77e2dc0f'
3331

34-
- name: gcp
35-
rules:
3632
- alert: GcpCloudSQLHighCpu
3733
expr: |
3834
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:
4743
description: 'Check {{ $labels.database_id }} database for high CPU queries and optimize them, or scale up the instance if sustained high usage.'
4844
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
4945

50-
- name: gcp
51-
rules:
5246
- alert: GcpCloudSQLMemoryUsage
5347
expr: |
5448
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:
6357
description: 'Review high-memory queries or add more memory to the {{ $labels.database_id }} instance.'
6458
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
6559

66-
- name: gcp
67-
rules:
6860
- alert: GcpCloudSQLDiskUsage
6961
expr: |
7062
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:
7971
description: 'Delete or archive unused data, or increase disk size to the {{ $labels.database_id }} database.'
8072
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
8173

82-
- name: gcp
83-
rules:
8474
- alert: GcpCloudSQLActiveConnections
8575
expr: |
8676
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:
9585
description: 'Investigate connection pooling settings and connection management in your {{ $labels.database_id }} application database.'
9686
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
9787

98-
- name: gcp
99-
rules:
10088
- alert: GcpCloudSQLAbortedConnections
10189
expr: |
10290
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:
11199
description: 'Verify credentials and network settings; check for firewall rules blocking connections for the {{ $labels.database_id }} database.'
112100
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
113101

114-
- name: gcp
115-
rules:
116102
- alert: GcpCloudSQLLagSecondsBehindMaster
117103
expr: |
118104
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:
127113
description: 'Check {{ $labels.database_id }} database for network latency between primary and replica; adjust configurations to optimize replication.'
128114
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
129115

130-
- name: gcp
131-
rules:
132116
- alert: GcpPubSubNumUndeliveredMessages
133117
expr: |
134118
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:
143127
description: 'Scale up subscribers or adjust message processing capacity for the {{ $labels.instance }} instance.'
144128
dashboard_uid: '2abad1eb5e4873b95e9176e7ef10a30c'
145129

146-
- name: gcp
147-
rules:
148130
- alert: GcpPubSubUnackedMessageAge
149131
expr: |
150132
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

Comments
 (0)