Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions csp-mixin/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,26 @@
dashboard_uid: '58f33c50e66c911b0ad8a25aa438a96e',
},
},
{
alert: 'GcpCEHighCpuUtilization',
expr: 'avg by (%s) (%s) > 85' %
[
std.join(',', this.config.groupLabels + this.config.instanceLabels),
this.signals.gcpceOverview.tableCpuUtilization.asRuleExpression(),
],
'for': '5m',
keep_firing_for: '10m',
labels: {
severity: 'critical',
service: 'Compute Engine',
namespace: 'cloud-provider-' + this.config.uid,
},
annotations: {
summary: 'CPU utilization is too high',
description: 'The VM {{$labels.instance_name}} is under heavy load and may become unresponsive.',
dashboard_uid: 'f115fe73641347c43415535d77e2dc0f',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you use dashboard_uid somewhere?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@v-zhuravlev yes in the UI to link from the Alert table to the dashboard associated to this service

},
},
],
},
],
Expand Down
Loading