From fc644d8434a434b58ca376efd4f990bc5b5d0a08 Mon Sep 17 00:00:00 2001 From: "push-app-to-main[bot]" <203845782+push-app-to-main[bot]@users.noreply.github.com> Date: Sat, 11 Oct 2025 00:06:23 +0200 Subject: [PATCH] Prometheus-Blackbox-Exporter (#8255) Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> --- ct/headers/prometheus-blackbox-exporter | 6 ++ ct/prometheus-blackbox-exporter.sh | 62 +++++++++++++++++++ .../json/prometheus-blackbox-exporter.json | 41 ++++++++++++ .../prometheus-blackbox-exporter-install.sh | 43 +++++++++++++ 4 files changed, 152 insertions(+) create mode 100644 ct/headers/prometheus-blackbox-exporter create mode 100644 ct/prometheus-blackbox-exporter.sh create mode 100644 frontend/public/json/prometheus-blackbox-exporter.json create mode 100644 install/prometheus-blackbox-exporter-install.sh diff --git a/ct/headers/prometheus-blackbox-exporter b/ct/headers/prometheus-blackbox-exporter new file mode 100644 index 000000000..936f051d3 --- /dev/null +++ b/ct/headers/prometheus-blackbox-exporter @@ -0,0 +1,6 @@ + ____ __ __ ____ __ __ __ ______ __ + / __ \_________ ____ ___ ___ / /_/ /_ ___ __ _______ / __ )/ /___ ______/ /__/ /_ ____ _ __ / ____/ ______ ____ _____/ /____ _____ + / /_/ / ___/ __ \/ __ `__ \/ _ \/ __/ __ \/ _ \/ / / / ___/_____/ __ / / __ `/ ___/ //_/ __ \/ __ \| |/_/_____/ __/ | |/_/ __ \/ __ \/ ___/ __/ _ \/ ___/ + / ____/ / / /_/ / / / / / / __/ /_/ / / / __/ /_/ (__ )_____/ /_/ / / /_/ / /__/ ,< / /_/ / /_/ /> /etc/systemd/system/blackbox-exporter.service +[Unit] +Description=Blackbox Exporter Service +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/blackbox-exporter +ExecStart=/opt/blackbox-exporter/blackbox_exporter +Restart=on-failure + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now blackbox-exporter +msg_ok "Service Created" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean +msg_ok "Cleaned"