Ansible BuildAnsible Build
Home
Scripts
Mint System
GitHub
Home
Scripts
Mint System
GitHub
  • Blackbox exporter role

Blackbox exporter role

Deploy Blackbox exporter container.

Usage

Configure the role.

# https://hub.docker.com/r/prom/blackbox-exporter
blackbox_exporter_image: prom/blackbox-exporter:v0.25.0
blackbox_exporter_hostname: blackbox01
blackbox_exporter_description: Probing service for prometheus # default: Blackbox exporter
blackbox_exporter_data_dir: /usr/share/blackbox # default: "/usr/share/{{ blackbox_exporter_hostname }}"

And include it in your playbook.

- hosts: blackbox_exporter
  roles:
  - role: blackbox_exporter

Docs

Debug website probe

On the host run:

WEBSITE=https://example.com
curl "http://blackbox01:9115/probe?target=\$WEBSITE&module=http_2xx&debug=true"
Edit this page
Last Updated:
Contributors: Janik von Rotz