Hi there!
I have a situation, and I'm trying to solve this. I have an alerting rule:
expr: up{job="blackbox_probe"} == 0 or probe_success{job="blackbox_probe"} == 0
for: 1m
labels:
severity: warning
annotations:
summary: "Site down! (instance {{ $labels.instance }})"
The targets a have their owners and a severity variable. I did this:
expr: up{job="blackbox_probe"} == 0 or probe_success{job="blackbox_probe"} == 0
for: 1m
labels:
severity: {{ $labels.severity }}
annotations:
summary: "Site down! (instance {{ $labels.instance }})"
if it's critical , it's goes to the pagerduty, if it's warning , sends an email. That's my goal. Any hint what went wrong?
Thanks!