- alert: EndpointDown expr: probe_success == 0 for: "2m" labels: severity: critical annotations: summary: "Service down" description: "{{ $labels.instance }} is down for more than 2 minutes" # Redirect to HTTP or DNS dashboard based on vmagent job name dashboard: '{{ if eq $labels.job "blackbox-http" -}}https://grafana.picasoft.net/d/8BOa8W47z/services-web?var-instance={{ $labels.instance }}{{- else if eq $labels.job "blackbox-dns" -}}https://grafana.picasoft.net/d/1twteMV7k/serveurs-dns?var-instance={{ $labels.instance }}{{- end -}}'