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 FROM prom/prometheus
LABEL version="20240623.1.5" LABEL version="20240623.1.6"
LABEL description="prometheus" LABEL description="prometheus"
RUN mkdir -p /etc/prometheus RUN mkdir -p /etc/prometheus

View File

@ -10,7 +10,7 @@ services:
prometheus: prometheus:
build: build:
dockerfile: Dockerfile 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 container_name: prometheus
command: '--config.file=/etc/prometheus/prometheus.yml' command: '--config.file=/etc/prometheus/prometheus.yml'
restart: unless-stopped restart: unless-stopped

View File

@ -2,6 +2,7 @@ global:
scrape_interval: 15s scrape_interval: 15s
scrape_timeout: 10s scrape_timeout: 10s
evaluation_interval: 15s evaluation_interval: 15s
alerting: alerting:
alertmanagers: alertmanagers:
- static_configs: - static_configs:
@ -9,48 +10,86 @@ alerting:
scheme: http scheme: http
timeout: 10s timeout: 10s
api_version: v1 api_version: v1
scrape_configs: scrape_configs:
- job_name: prometheus - job_name: prometheus
honor_timestamps: true honor_timestamps: true
scrape_interval: 15s scrape_interval: 15s
scrape_timeout: 10s scrape_timeout: 10s
metrics_path: /metrics metrics_path: /metrics
scheme: http scheme: http
static_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
metrics_path: /probe
params:
module: [https_2xx]
static_configs:
- targets: - targets:
- thelinux.pro:443 - localhost:9090
- job_name: blackbox_http_3xx
metrics_path: /probe - job_name: docker_hosts
params: static_configs:
module: [http_301] - targets: ['pi501.in.thelinuxpro.net:9100', 'pi502.in.thelinuxpro.net:9100']
static_configs:
- targets: - job_name: unifi
- thelinux.pro:80 static_configs:
- job_name: blackbox_dns_thelinux_pro__A - targets: ['unpoller.in.thelinuxpro.net:9130']
metrics_path: /probe
params: - job_name: pihole
module: [dns_thelinux_pro__A] static_configs:
static_configs: - targets: ['pihole-exporter.in.thelinuxpro.net:9617']
- targets: ['ns1.thelinuxpro.net', 'ns2.thelinuxpro.net']
- job_name: blackbox_dns_thelinux_pro__SOA - job_name: blackbox_https_2xx
metrics_path: /probe metrics_path: /probe
params: params:
module: [dns_thelinux_pro__SOA] module: [https_2xx]
static_configs: static_configs:
- targets: ['ns1.thelinuxpro.net', 'ns2.thelinuxpro.net'] - targets:
- 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:
- 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: 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