2023-03-20 16:54:01 +01:00
# Prometheus Blackbox Exporter
2023-03-19 21:34:43 +01:00
This playbook can configure [Prometheus Blackbox Exporter ](https://github.com/prometheus/blackbox_exporter ).
## Configuration
To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation ](../installing.md ) process:
```yaml
########################################################################
# #
# prometheus-blackbox-exporter #
# #
########################################################################
prometheus_blackbox_exporter_enabled: true
2023-03-20 08:08:26 +01:00
2024-01-23 17:05:23 +01:00
# To expose the metrics publicly, enable and configure the lines below:
2023-03-20 20:18:27 +01:00
# prometheus_blackbox_exporter_hostname: mash.example.com
2024-01-23 17:05:23 +01:00
# prometheus_blackbox_exporter_path_prefix: /metrics/mash-prometheus-blackbox-exporter
# To protect the metrics with HTTP Basic Auth, enable and configure the lines below.
# See: https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
# prometheus_blackbox_exporter_container_labels_metrics_middleware_basic_auth_enabled: true
# prometheus_blackbox_exporter_container_labels_metrics_middleware_basic_auth_users: ''
2023-03-19 21:34:43 +01:00
########################################################################
# #
# /prometheus-blackbox-exporter #
# #
########################################################################
```
## Usage
2024-01-23 17:05:23 +01:00
After you've installed the blackbox exporter, your blackbox prober will be available on `mash.example.com/metrics/mash-prometheus-blackbox-exporter` with the basic auth credentials you've configured if hostname and path prefix where provided