Skip to content

Commit

Permalink
Update dashboard_url for GCP alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
anaivanov committed Dec 17, 2024
1 parent c77ee91 commit 3b20505
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions csp-mixin/alerts/gcp-alerts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ groups:
annotations:
summary: 'VM CPU utilization is too high.'
description: 'The VM {{ $labels.instance_name }} is under heavy load and may become unresponsive.'
dashboard_uid: 'f115fe73641347c43415535d77e2dc0f'
dashboard_url: '/a/grafana-csp-app/gcp/dashboards/compute-engine'

- alert: GcpCEHighIOLatency
expr: |
Expand All @@ -27,7 +27,7 @@ groups:
annotations:
summary: 'VM IO latency is too high.'
description: 'Check {{ $labels.instance_id }} VM for I/O bottlenecks and upgrade to SSD if necessary.'
dashboard_uid: 'f115fe73641347c43415535d77e2dc0f'
dashboard_url: '/a/grafana-csp-app/gcp/dashboards/compute-engine'

- alert: GcpCloudSQLHighCpu
expr: |
Expand All @@ -41,7 +41,7 @@ groups:
annotations:
summary: 'Database CPU utilization is too high.'
description: 'Check {{ $labels.database_id }} database for high CPU queries and optimize them, or scale up the instance if sustained high usage.'
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
dashboard_url: '/a/grafana-csp-app/gcp/dashboards/cloud-sql'

- alert: GcpCloudSQLMemoryUsage
expr: |
Expand All @@ -55,7 +55,7 @@ groups:
annotations:
summary: 'Database memory utilization is too high.'
description: 'Review high-memory queries or add more memory to the {{ $labels.database_id }} instance.'
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
dashboard_url: '/a/grafana-csp-app/gcp/dashboards/cloud-sql'

- alert: GcpCloudSQLDiskUsage
expr: |
Expand All @@ -69,7 +69,7 @@ groups:
annotations:
summary: 'Database disk utilization is too high.'
description: 'Delete or archive unused data, or increase disk size to the {{ $labels.database_id }} database.'
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
dashboard_url: '/a/grafana-csp-app/gcp/dashboards/cloud-sql'

- alert: GcpCloudSQLActiveConnections
expr: |
Expand All @@ -83,7 +83,7 @@ groups:
annotations:
summary: 'Too many database active connections.'
description: 'Investigate connection pooling settings and connection management in your {{ $labels.database_id }} application database.'
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
dashboard_url: '/a/grafana-csp-app/gcp/dashboards/cloud-sql'

- alert: GcpCloudSQLAbortedConnections
expr: |
Expand All @@ -97,7 +97,7 @@ groups:
annotations:
summary: 'More than 5 MySQL failed connections in 5 minutes.'
description: 'Verify credentials and network settings; check for firewall rules blocking connections for the {{ $labels.database_id }} database.'
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
dashboard_url: '/a/grafana-csp-app/gcp/dashboards/cloud-sql'

- alert: GcpCloudSQLLagSecondsBehindMaster
expr: |
Expand All @@ -111,7 +111,7 @@ groups:
annotations:
summary: 'More than 5 seconds lag between database read replica and primary.'
description: 'Check {{ $labels.database_id }} database for network latency between primary and replica; adjust configurations to optimize replication.'
dashboard_uid: 'cc710d49022fdd69bed0e992891863e9'
dashboard_url: '/a/grafana-csp-app/gcp/dashboards/cloud-sql'

- alert: GcpPubSubNumUndeliveredMessages
expr: |
Expand All @@ -125,7 +125,7 @@ groups:
annotations:
summary: 'More than 1000 unacknowledged messages for a PubSub subscription.'
description: 'Scale up subscribers or adjust message processing capacity for the {{ $labels.instance }} instance.'
dashboard_uid: '2abad1eb5e4873b95e9176e7ef10a30c'
dashboard_url: '/a/grafana-csp-app/gcp/dashboards/pub-sub'

- alert: GcpPubSubUnackedMessageAge
expr: |
Expand All @@ -139,4 +139,4 @@ groups:
annotations:
summary: 'Unacknowledged messages for more than 60 seconds for a PubSub subscription.'
description: 'Investigate {{ $labels.instance }} instance and speed up message processing; ensure consumers can handle the load.'
dashboard_uid: '2abad1eb5e4873b95e9176e7ef10a30c'
dashboard_url: '/a/grafana-csp-app/gcp/dashboards/pub-sub'

0 comments on commit 3b20505

Please sign in to comment.