Collect CPU, memory, disk and network metrics from your machines with node-exporter, store them in Prometheus, and build dashboards and alerts in Grafana.
services: node-exporter: image: prom/node-exporter pid: host volumes: ["/:/host:ro"] command: ["--path.rootfs=/host"] prometheus: image: prom/prometheus volumes: ["./prometheus.yml:/etc/prometheus/prometheus.yml"] ports: ["9090:9090"] grafana: image: grafana/grafana ports: ["3000:3000"] # prometheus.yml scrape_configs: - job_name: node static_configs: - targets: ["node-exporter:9100"]