From de910ea65f90b96aaaafa494e82b0bb91e862e0e Mon Sep 17 00:00:00 2001 From: Kameron Kenny <1267885+kkenny@users.noreply.github.com> Date: Sun, 23 Jun 2024 15:35:00 -0400 Subject: [PATCH] add some blackbox exporter --- Dockerfile | 2 +- docker-compose.yml | 2 +- prometheus/prometheus.yml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index afa6eb0..61dc6ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM prom/prometheus -LABEL version="20240606.1.1" +LABEL version="20240623.1.1" LABEL description="prometheus" RUN mkdir -p /etc/prometheus diff --git a/docker-compose.yml b/docker-compose.yml index 29cc10c..a23a7f5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: prometheus: build: dockerfile: Dockerfile - image: docker-registry1.in.thelinuxpro.net:5000/tlp/prometheus:240606.1.1 + image: docker-registry1.in.thelinuxpro.net:5000/tlp/prometheus:240623.1.1 container_name: prometheus command: '--config.file=/etc/prometheus/prometheus.yml' restart: unless-stopped diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index 891603c..4dd1c94 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -28,3 +28,33 @@ scrape_configs: - job_name: pihole static_configs: - targets: ['pihole-exporter.in.thelinuxpro.net:9617'] +- job_name: blackbox + metrics_path: /probe + params: + module: [https_2xx] + static_configs: + - targets: + - https://thelinux.pro +- job_name: blackbox_http_3xx + metrics_path: /probe + params: + module: [http_301] + static_configs: + - targets: + - http://thelinux.pro +- job_name: blackbox_dns_thelinux_pro__A + metrics_path: /probe + params: + module: dns_thelinux_pro__A + static_configs: + - targets: + - ns1.thelinuxpro.net + - ns2.thelinuxpro.net +- job_name: blackbox_dns_thelinux_pro__SOA + metrics_path: /probe + params: + module: dns_thelinux_pro__SOA + static_configs: + - targets: + - ns1.thelinuxpro.net + - ns2.thelinuxpro.net