This commit is contained in:
Kameron Kenny 2024-06-23 17:53:45 -04:00
parent c606453670
commit f0f5343d18
No known key found for this signature in database
GPG Key ID: E5006629839D2276
3 changed files with 84 additions and 45 deletions

View File

@ -1,6 +1,6 @@
FROM prom/prometheus
LABEL version="20240623.1.5"
LABEL version="20240623.1.6"
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:240623.1.5
image: docker-registry1.in.thelinuxpro.net:5000/tlp/prometheus:240623.1.6
container_name: prometheus
command: '--config.file=/etc/prometheus/prometheus.yml'
restart: unless-stopped

View File

@ -2,6 +2,7 @@ global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
@ -9,6 +10,7 @@ alerting:
scheme: http
timeout: 10s
api_version: v1
scrape_configs:
- job_name: prometheus
honor_timestamps: true
@ -19,38 +21,75 @@ scrape_configs:
static_configs:
- targets:
- localhost:9090
- job_name: docker_hosts
static_configs:
- targets: ['pi501.in.thelinuxpro.net:9100', 'pi502.in.thelinuxpro.net:9100']
- job_name: unifi
static_configs:
- targets: ['unpoller.in.thelinuxpro.net:9130']
- job_name: pihole
static_configs:
- targets: ['pihole-exporter.in.thelinuxpro.net:9617']
- job_name: blackbox
- job_name: blackbox_https_2xx
metrics_path: /probe
params:
module: [https_2xx]
static_configs:
- targets:
- thelinux.pro:443
- https://thelinux.pro
- https://kameronkenny.com
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter.in.thelinuxpro.net:9115
- job_name: blackbox_http_3xx
metrics_path: /probe
params:
module: [http_301]
static_configs:
- targets:
- thelinux.pro:80
- https://thelinux.pro
- https://kameronkenny.com
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter.in.thelinuxpro.net:9115
- job_name: blackbox_dns_thelinux_pro__A
metrics_path: /probe
metrics_path: blackbox-exporter.in.thelinuxpro.net/probe
params:
module: [dns_thelinux_pro__A]
static_configs:
- targets: ['ns1.thelinuxpro.net', 'ns2.thelinuxpro.net']
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter.in.thelinuxpro.net:9115
- 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']
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter.in.thelinuxpro.net:9115