Skip to content

Instantly share code, notes, and snippets.

@eskp
Last active March 22, 2017 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eskp/48dbb1b6e89d00068e6f65ec7ce73f85 to your computer and use it in GitHub Desktop.
Save eskp/48dbb1b6e89d00068e6f65ec7ce73f85 to your computer and use it in GitHub Desktop.
ALERT InstanceHighCpu
IF 100 - (avg by (instance) (irate(node_cpu{mode="idle"}[5m])) * 100) > 90
FOR 20m
ANNOTATIONS {
summary = "High CPU Usage on {{ $labels.instance }}",
description = "CPU usage exceeds threshold (currently {{ $value|humanize }}% in use)",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment