diff options
author | Georg | 2021-08-06 17:42:45 +0200 |
---|---|---|
committer | Georg | 2021-08-06 17:42:45 +0200 |
commit | 4bd9e36ff45b2001b048a23a218e26605deac7d0 (patch) | |
tree | 4b592921aa4cbf98d75059f9223712b6ddcc1799 /blackbox_exporter | |
parent | 1791f4374b72e5bd45dfbe6d2e543d0537f711e0 (diff) | |
download | monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.tar.gz monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.tar.bz2 monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.zip |
Mass Commit 06/08/2021
Signed-off-by: Georg <georg@lysergic.dev>
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 |