From 4bd9e36ff45b2001b048a23a218e26605deac7d0 Mon Sep 17 00:00:00 2001 From: Georg Date: Fri, 6 Aug 2021 17:42:45 +0200 Subject: Mass Commit 06/08/2021 Signed-off-by: Georg --- blackbox_exporter/blackbox.yml | 36 +++++++++++++++++++++++++++++ blackbox_exporter/blackbox_exporter.service | 13 +++++++++++ 2 files changed, 49 insertions(+) create mode 100644 blackbox_exporter/blackbox.yml create mode 100644 blackbox_exporter/blackbox_exporter.service (limited to 'blackbox_exporter') diff --git a/blackbox_exporter/blackbox.yml b/blackbox_exporter/blackbox.yml new file mode 100644 index 0000000..2f97613 --- /dev/null +++ b/blackbox_exporter/blackbox.yml @@ -0,0 +1,36 @@ +modules: + http_2xx: + prober: http + timeout: 10s + http: + preferred_ip_protocol: "ipv4" + http_post_2xx: + prober: http + http: + method: POST + tcp_connect: + prober: tcp + pop3s_banner: + prober: tcp + tcp: + query_response: + - expect: "^+OK" + tls: true + tls_config: + insecure_skip_verify: false + ssh_banner: + prober: tcp + tcp: + query_response: + - expect: "^SSH-2.0-" + irc_banner: + prober: tcp + tcp: + query_response: + - send: "NICK prober" + - send: "USER prober prober prober :prober" + - expect: "PING :([^ ]+)" + send: "PONG ${1}" + - expect: "^:[^ ]+ 001" + icmp: + prober: icmp diff --git a/blackbox_exporter/blackbox_exporter.service b/blackbox_exporter/blackbox_exporter.service new file mode 100644 index 0000000..f282248 --- /dev/null +++ b/blackbox_exporter/blackbox_exporter.service @@ -0,0 +1,13 @@ +[Unit] +Description=Prometheus Blackbox Exporter +Wants=network-online.target +After=network-online.target + +[Service] +Type=simple +User=blackbox_exporter +Group=prometheus +ExecStart=/opt/blackbox_exporter/blackbox_exporter --config.file=/etc/prometheus/blackbox.yml --web.external-url=https://prometheus.lysergic.dev:4433/blackbox --web.route-prefix=/ + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3