Skip to content

Instantly share code, notes, and snippets.

@gmas
Created June 15, 2016 20:50
Show Gist options
  • Save gmas/63dcaf471c4d8fce74c774800d851608 to your computer and use it in GitHub Desktop.
Save gmas/63dcaf471c4d8fce74c774800d851608 to your computer and use it in GitHub Desktop.
Prom alerts
ALERT ELB_errors
IF sum(aws_elb_httpcode_elb_5_xx_sum) by (load_balancer_name) > 0
FOR 3m
LABELS { severity = "critical" }
ANNOTATIONS {
summary = "ELB {{$labels.load_balancer_name}} is returning 5xx errors",
description = "{{$labels.load_balancer_name}} of job {{$labels.job}} is erroring.",
@gmas
Copy link
Author

gmas commented Jun 15, 2016

Output:
[FIRING:3] ELB_errors (prod-monitor critical)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment