add some blackbox exporter

This commit is contained in:
Kameron Kenny 2024-06-23 15:35:00 -04:00
parent 7db1538818
commit de910ea65f
No known key found for this signature in database
GPG Key ID: E5006629839D2276
3 changed files with 32 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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