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

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/c5cb42bb-5c63-40ed-aa23-529be0118101%407748229.xyz.

Attachment: OpenPGP_0x0D0C34B5DF58FE9D.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to