Add hdd-exporter-local and fix disk space

This commit is contained in:
2025-01-09 17:15:54 +08:00
parent 456b00b7b3
commit 004adf6705
2 changed files with 9 additions and 0 deletions

View File

@@ -6,3 +6,8 @@ scrape_configs:
scrape_interval: 5s scrape_interval: 5s
static_configs: static_configs:
- targets: ['192.168.1.24:8084'] - targets: ['192.168.1.24:8084']
- job_name: 'hdd-exporter-local'
scrape_interval: 5s
static_configs:
- targets: ['192.168.1.24:8087']

View File

@@ -41,5 +41,9 @@ services:
node_exporter: node_exporter:
image: prom/node-exporter:latest image: prom/node-exporter:latest
restart: always restart: always
volumes:
- /:/host:ro,rslave
command:
- --path.rootfs=/host
ports: ports:
- "8084:9100" - "8084:9100"