diff --git a/prometheus.yml b/prometheus.yml index 0311ae2..f9f595a 100644 --- a/prometheus.yml +++ b/prometheus.yml @@ -4,4 +4,8 @@ global: scrape_configs: - job_name: 'traefik' static_configs: - - targets: ['reverse-proxy:8082'] \ No newline at end of file + - targets: ['reverse-proxy:8082'] + + - job_name: 'node' + static_configs: + - targets: [ 'prom_node_exporter:9100' ] \ No newline at end of file diff --git a/swarm-compose.reverse-proxy.yml b/swarm-compose.reverse-proxy.yml index 53cc556..c196bef 100644 --- a/swarm-compose.reverse-proxy.yml +++ b/swarm-compose.reverse-proxy.yml @@ -70,6 +70,11 @@ services: - ./data/letsencrypt:/letsencrypt - /var/run/docker.sock:/var/run/docker.sock + node-exporter: + networks: + - reverse_proxy_network + image: prom/node-exporter + prometheus: image: prom/prometheus networks: