r/blackbox-exporter: Deploy blackbox_exporter

The Prometheus *blackbox_exporter* is a tool that can perform arbitrary,
generic ICMP, TCP, or HTTP "probes" against external services.  This is
useful for applications that do not export their own metrics, and for
evaluating the health of protocol-level operations (e.g. TLS
certificate expiration).

The *blackbox-exporter* Ansible role installs and configures the
Blackbox Exporter on the target system.  It fetches the specified binary
release from Github and copies it to the remote machine.  It also
creates a systemd unit and configures the Blackbox exporter's "modules"
from the `blackbox_modules` Ansible variable.
This commit is contained in:
2022-08-08 21:51:51 -05:00
parent 60505657f3
commit 1e14dd7905
13 changed files with 182 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
blackbox_xptr_version: 0.22.0
blackbox_xptr_base_url:
https://github.com/prometheus/blackbox_exporter/releases/download
blackbox_xptr_archive:
blackbox_exporter-{{ blackbox_xptr_version }}.linux-{{ blackbox_xptr_arch }}
blackbox_xptr_tar_name: >-
{{ blackbox_xptr_archive }}.tar.gz
blackbox_xptr_tar_url: >-
{{ blackbox_xptr_base_url }}/v{{ blackbox_xptr_version }}/{{ blackbox_xptr_tar_name }}
blackbox_xptr_cksm_url: >-
{{ blackbox_xptr_base_url }}/v{{ blackbox_xptr_version }}/sha256sums.txt
blackbox_xptr_extract_dir: >-
{{ playbook_dir }}/tmp/{{ blackbox_xptr_archive }}