dht needs to be run in host mode

This commit is contained in:
Victor Shyba 2022-02-06 02:33:25 -03:00
parent b66d5c0e12
commit 85f7935ca7
2 changed files with 3 additions and 2 deletions

View file

@ -39,8 +39,9 @@ services:
command: --metrics_port 7777 command: --metrics_port 7777
container_name: dht_node_exporter container_name: dht_node_exporter
restart: unless-stopped restart: unless-stopped
network_mode: "host"
ports: ports:
- 4444:4444 - 4444:4444/udp
# node-exporter: # node-exporter:
# image: prom/node-exporter:latest # image: prom/node-exporter:latest

View file

@ -34,7 +34,7 @@ scrape_configs:
scheme: http scheme: http
static_configs: static_configs:
- targets: - targets:
- dht_node_exporter:7777 - host.docker.internal:7777
- job_name: lbcd - job_name: lbcd
metrics_path: / metrics_path: /