Skip to content

Instantly share code, notes, and snippets.

@fideloper
Created May 11, 2020 17:34
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 fideloper/1b1a67e90d817b4e8a59c9ab424191d6 to your computer and use it in GitHub Desktop.
Save fideloper/1b1a67e90d817b4e8a59c9ab424191d6 to your computer and use it in GitHub Desktop.
groups:
- name: node_rules
rules:
- record: instance:node_cpu:avg_rate5m
expr: 100 - avg (irate(node_cpu_seconds_total{job="helpspot-cloud", mode="idle"}[5m])) by (instance) * 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment