Skip to content
Snippets Groups Projects
Commit 40d9924d authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-767: Run the node-exporter on the host to be able to expose more host metrics

parent 54d110a8
No related branches found
No related tags found
1 merge request!316Resolve L2SS-767 "Add node exporter"
...@@ -15,8 +15,7 @@ services: ...@@ -15,8 +15,7 @@ services:
options: options:
max-size: "100m" max-size: "100m"
max-file: "10" max-file: "10"
networks: network_mode: host # run on the host to be able to access host network statistics
- control
logging: logging:
driver: syslog driver: syslog
options: options:
......
...@@ -23,6 +23,8 @@ services: ...@@ -23,6 +23,8 @@ services:
max-file: "10" max-file: "10"
networks: networks:
- control - control
extra_hosts:
- "host.docker.internal:host-gateway"
volumes: volumes:
- prometheus-data:/prometheus - prometheus-data:/prometheus
ports: ports:
......
...@@ -13,4 +13,4 @@ scrape_configs: ...@@ -13,4 +13,4 @@ scrape_configs:
scrape_interval: 60s scrape_interval: 60s
static_configs: static_configs:
- targets: - targets:
- "prometheus-node-exporter:9100" - "host.docker.internal:9100"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment