diff --git a/docker-compose.yml b/docker-compose.yml index 4464310..2d6cda0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -82,6 +82,17 @@ services: clone_config: condition: service_completed_successfully + node_exporter: + image: quay.io/prometheus/node-exporter:latest + command: + - '--path.rootfs=/host' + pid: host + restart: unless-stopped + volumes: + - '/:/host:ro,rslave' + networks: + - traefik-public + volumes: grafana-data: prometheus-data: diff --git a/prometheus.yaml b/prometheus.yaml index 7c882e0..1e336c9 100644 --- a/prometheus.yaml +++ b/prometheus.yaml @@ -7,3 +7,7 @@ scrape_configs: static_configs: - targets: - "traefik:8080" + - job_name: node_exporter + static_configs: + - targets: + - "node_exporter:9100"