Hi dear Community
I wish to output the metrics of blackbox_exporter
- probe_failed_due_to_regex
- probe_http_status_code
in alert mail
At the moment I do this, but it's not working
- alert: Blackbox-Probe-Result
expr: probe_success{app="ZZY", env="Prod", customer="OOO"} != 1
for: 1m
labels:
severity: warning
annotations:
summary: PPP
description: HTTP probe of {{ $labels.instance }} failed.
Regex Matching "probe_failed_due_to_regex" is {{
$labels.probe_failed_due_to_regex }} and the HTTP status code is {{
$labels.probe_http_status_code }}.
I found with a web
searchhttps://
stackoverflow.com/questions/57022903/blackbox-exporter-alert-with-value-of-the-probe-http-status-code-metric
I did not understand it, why needed.
Any ideas?
Kind regards
Jason