Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 729 Bytes

File metadata and controls

34 lines (24 loc) · 729 Bytes

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"