Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource alert: add more metrics for CPU usage #739

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all 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
26 changes: 26 additions & 0 deletions alerts/resource_alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,32 @@
description: '{{ $value | humanizePercentage }} throttling of CPU in namespace {{ $labels.namespace }} for container {{ $labels.container }} in pod {{ $labels.pod }}.',
summary: 'Processes experience elevated CPU throttling.',
},
{
alert: 'HostHighCPULoad',
expr: |||
100 - (avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[2m])) * 100) > 75
||| % $._config,
'for': '1m',
labels: {
severity: 'warning',
},
annotations: {
description: 'CPU load is > 75%\n VALUE = {{ $value }}\n LABELS = {{ $labels }}.',
summary: 'Host high CPU load (instance {{ $labels.instance }}).',
},
{
alert: 'HostCPUStealNoisyNeighbor',
expr: |||
avg by(instance) (rate(node_cpu_seconds_total{mode="steal"}[5m])) * 100 > 10
||| % $._config,
'for': '1m',
labels: {
severity: 'warning',
},
annotations: {
description: 'CPU steal is > 10%. A noisy neighbor is killing VM performances.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}.',
summary: 'Host CPU steal noisy neighbor (instance {{ $labels.instance }}).',
},
},
],
},
Expand Down