diff options
Diffstat (limited to 'blackbox_exporter')
-rw-r--r-- | blackbox_exporter/blackbox.yml | 36 | ||||
-rw-r--r-- | blackbox_exporter/blackbox_exporter.service | 13 |
2 files changed, 49 insertions, 0 deletions
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 |