2023-03-20 17:54:01 +02:00
# Prometheus Blackbox Exporter
2023-03-19 22:34:43 +02: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 09:08:26 +02:00
2023-03-20 21:18:27 +02:00
# if you want to export blackbox's probe endpoint, uncomment and adjust the following vars
2023-03-20 09:08:26 +02:00
2023-03-20 21:18:27 +02:00
# prometheus_blackbox_exporter_hostname: mash.example.com
# prometheus_blackbox_exporter_path_prefix: /metrics/blackbox-exporter
# prometheus_blackbox_exporter_basicauth_user: your_username
# prometheus_blackbox_exporter_basicauth_password: your password
2023-03-19 22:34:43 +02:00
########################################################################
# #
# /prometheus-blackbox-exporter #
# #
########################################################################
```
## Usage
2023-03-20 21:18:27 +02:00
After you've installed the blackbox exporter, your blackbox prober will be available on `mash.example.com/metrics/blackbox-exporter` with the basic auth credentials you've configured if hostname and path prefix where provided