Blackbox exporter: Difference between revisions

From wikinotes
Line 40: Line 40:
|}
|}
</blockquote><!-- Notes -->
</blockquote><!-- Notes -->
= Usage =
<blockquote>
== Metrics ==
<blockquote>
* <code>probe_success</code>: the probe passed (no search results if no passes!)
* <code>up</code>: the metric was reachable
* <code>promhttp_metric_handler_requests_total</code>
<syntaxhighlight lang="promql">
up{instance="https://willpittman.net"}
absent_over_time(promhttp_metric_handler_requests_total{instance="https://willpittman.net", code="200"}[1s])
</syntaxhighlight>
</blockquote><!-- Rules -->
</blockquote><!-- Usage -->

Revision as of 14:30, 20 February 2022

Prometheus exporter that probes endpoints over HTTP/HTTPS/DNS/TCP/ICMP.

Documentation

github https://github.com/prometheus/blackbox_exporter
config syntax https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md
example config https://github.com/prometheus/blackbox_exporter/blob/master/example.yml

Locations

9115 default port
http://localhost:9115 simple web-ui, with sample probe to prometheus.io
${PREFIX}/etc/blackbox_exporter.yml config

Notes

blackbox_exporter install
blackbox_exporter configuration
blackbox_exporter usage
blackbox_exporter debugging