Skip to content

Instantly share code, notes, and snippets.

@rafaeljesus
Last active June 5, 2019 22:41
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 rafaeljesus/ad91f4dc55d5b4f744d04faa28b064ff to your computer and use it in GitHub Desktop.
Save rafaeljesus/ad91f4dc55d5b4f744d04faa28b064ff to your computer and use it in GitHub Desktop.
prom composed slo
- record: prometheus_infrastructure_team:up:max_avg_over_time5m
expr: >
max (
avg_over_time (
up{job="prometheus-infra"}[5m]
)
)
- record: prometheus_infrastructure_team:up:avg_over_time4w
expr: >
avg_over_time (
prometheus_infrastructure_team:up:max_avg_over_time5m[4w]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment