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

    • Usage
    • Docs
      • Debug website probe
blackbox_exporter logo

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.26.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_redirect&debug=true"
Edit this page
Last Updated:
Contributors: Janik von Rotz