Skip to content

Commit

Permalink
add dashboard uid, service and namespace to the azure alerts (grafana…
Browse files Browse the repository at this point in the history
  • Loading branch information
yduartep authored Oct 2, 2024
1 parent 349a4d4 commit 4ce507a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions csp-mixin/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
keep_firing_for: '10m',
labels: {
severity: 'critical',
service: 'Azure Virtual Machines',
namespace: 'cloud-provider-' + this.config.uid,
},
annotations: {
summary: 'CPU utilization is too high',
description: 'The VM {{$labels.resourceName}} is under heavy load and may become unresponsive.',
dashboard_uid: '58f33c50e66c911b0ad8a25aa438a96e',
},
},
{
Expand All @@ -33,10 +36,13 @@
keep_firing_for: '10m',
labels: {
severity: 'critical',
service: 'Azure Virtual Machines',
namespace: 'cloud-provider-' + this.config.uid,
},
annotations: {
summary: 'VM unavailable',
description: 'The VM {{$labels.resourceName}} is not functioning or crashed, which may require immediate action.',
dashboard_uid: '58f33c50e66c911b0ad8a25aa438a96e',
},
},
],
Expand Down

0 comments on commit 4ce507a

Please sign in to comment.