New version
This commit is contained in:
@@ -9,23 +9,39 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['localhost:9090']
|
- targets: ['localhost:9090']
|
||||||
|
|
||||||
|
- job_name: 'node_exporter'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- 'ddocker3.maison:9090'
|
||||||
|
- 'pfsense.serveur:9100'
|
||||||
|
relabel_configs:
|
||||||
|
- source_labels: [__address__]
|
||||||
|
target_label: job
|
||||||
|
replacement: 'Node_Exporter'
|
||||||
|
|
||||||
- job_name: 'cadvisor'
|
- job_name: 'cadvisor'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['localhost:8180']
|
- targets: ['cadvisor:8080']
|
||||||
|
|
||||||
- job_name: 'blackbox'
|
- job_name: 'blackbox'
|
||||||
metrics_path: /probe
|
metrics_path: /probe
|
||||||
|
scrape_interval: 5s
|
||||||
params:
|
params:
|
||||||
module: [http_2xx]
|
module: [http_2xx]
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- https://jeedom.sda.zone
|
- https://jeedom.sda.zone
|
||||||
- https://plex.tondomaine.fr
|
- https://librenms.sda.zone
|
||||||
|
- https://hoarder.sda.zone
|
||||||
|
- https://affine.sda.zone
|
||||||
|
- https://blinko.sda.zone
|
||||||
|
- https://gitea.sda.zone
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__address__]
|
- source_labels: [__address__]
|
||||||
target_label: __param_target
|
target_label: __param_target
|
||||||
- source_labels: [__param_target]
|
- source_labels: [__param_target]
|
||||||
target_label: instance
|
target_label: instance
|
||||||
- target_label: __address__
|
- target_label: __address__
|
||||||
replacement: localhost:9115
|
replacement: blackbox_exporter:9115
|
||||||
+5
-5
@@ -4,10 +4,10 @@ services:
|
|||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
user: '0'
|
user: '0'
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/docker/volumes/prometheus/prometheus:/etc/prometheus
|
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||||
- /var/lib/docker/volumes/prometheus/prometheus_data:/prometheus
|
- /var/lib/docker/volumes/prometheus/prometheus_data:/prometheus
|
||||||
ports:
|
ports:
|
||||||
- "9090:9090"
|
- "19090:9090"
|
||||||
command:
|
command:
|
||||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -17,7 +17,7 @@ services:
|
|||||||
container_name: grafana
|
container_name: grafana
|
||||||
user: '0'
|
user: '0'
|
||||||
ports:
|
ports:
|
||||||
- "3100:3000"
|
- "13000:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/docker/volumes/prometheus/grafana_data:/var/lib/grafana
|
- /var/lib/docker/volumes/prometheus/grafana_data:/var/lib/grafana
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -34,7 +34,7 @@ services:
|
|||||||
container_name: cadvisor
|
container_name: cadvisor
|
||||||
user: '0'
|
user: '0'
|
||||||
ports:
|
ports:
|
||||||
- "8180:8080"
|
- "18080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- /:/rootfs:ro
|
- /:/rootfs:ro
|
||||||
- /var/run:/var/run:ro
|
- /var/run:/var/run:ro
|
||||||
@@ -47,7 +47,7 @@ services:
|
|||||||
container_name: blackbox_exporter
|
container_name: blackbox_exporter
|
||||||
user: '0'
|
user: '0'
|
||||||
ports:
|
ports:
|
||||||
- "9115:9115"
|
- "19115:9115"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/docker/volumes/prometheus/blackbox:/etc/blackbox_exporter
|
- /var/lib/docker/volumes/prometheus/blackbox:/etc/blackbox_exporter
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user