relabel
This commit is contained in:
parent
c606453670
commit
f0f5343d18
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,8 +10,9 @@ 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
|
||||||
|
@ -19,38 +21,75 @@ scrape_configs:
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- localhost:9090
|
- localhost:9090
|
||||||
- job_name: docker_hosts
|
|
||||||
|
- job_name: docker_hosts
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['pi501.in.thelinuxpro.net:9100', 'pi502.in.thelinuxpro.net:9100']
|
- targets: ['pi501.in.thelinuxpro.net:9100', 'pi502.in.thelinuxpro.net:9100']
|
||||||
- job_name: unifi
|
|
||||||
|
- job_name: unifi
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['unpoller.in.thelinuxpro.net:9130']
|
- targets: ['unpoller.in.thelinuxpro.net:9130']
|
||||||
- job_name: pihole
|
|
||||||
|
- job_name: pihole
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['pihole-exporter.in.thelinuxpro.net:9617']
|
- targets: ['pihole-exporter.in.thelinuxpro.net:9617']
|
||||||
- job_name: blackbox
|
|
||||||
|
- job_name: blackbox_https_2xx
|
||||||
metrics_path: /probe
|
metrics_path: /probe
|
||||||
params:
|
params:
|
||||||
module: [https_2xx]
|
module: [https_2xx]
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- thelinux.pro:443
|
- https://thelinux.pro
|
||||||
- job_name: blackbox_http_3xx
|
- 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
|
metrics_path: /probe
|
||||||
params:
|
params:
|
||||||
module: [http_301]
|
module: [http_301]
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- thelinux.pro:80
|
- https://thelinux.pro
|
||||||
- job_name: blackbox_dns_thelinux_pro__A
|
- https://kameronkenny.com
|
||||||
metrics_path: /probe
|
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:
|
params:
|
||||||
module: [dns_thelinux_pro__A]
|
module: [dns_thelinux_pro__A]
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['ns1.thelinuxpro.net', 'ns2.thelinuxpro.net']
|
- targets: ['ns1.thelinuxpro.net', 'ns2.thelinuxpro.net']
|
||||||
- job_name: blackbox_dns_thelinux_pro__SOA
|
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
|
metrics_path: /probe
|
||||||
params:
|
params:
|
||||||
module: [dns_thelinux_pro__SOA]
|
module: [dns_thelinux_pro__SOA]
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['ns1.thelinuxpro.net', 'ns2.thelinuxpro.net']
|
- 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
|
||||||
|
|
Loading…
Reference in New Issue