Make whisper nodes reachable from prometheus by sharing a network
Signed-off-by: Dmitry Shulyak <yashulyak@gmail.com>
This commit is contained in:
parent
156bbe1986
commit
ecf74e2189
|
@ -48,7 +48,7 @@ var (
|
|||
|
||||
// stats
|
||||
statsEnabled = flag.Bool("stats", false, "Expose node stats via /debug/vars expvar endpoint or Prometheus (log by default)")
|
||||
statsAddr = flag.String("stats.addr", "127.0.0.1:8080", "HTTP address with /debug/vars endpoint")
|
||||
statsAddr = flag.String("stats.addr", "0.0.0.0:8080", "HTTP address with /debug/vars endpoint")
|
||||
|
||||
// shh stuff
|
||||
identityFile = flag.String("shh.identityfile", "", "Protocol identity file (private key used for asymmetric encryption)")
|
||||
|
|
|
@ -4,6 +4,11 @@ volumes:
|
|||
prometheus_data: {}
|
||||
grafana_data: {}
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: wnodetestcluster_cluster
|
||||
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:v2.0.0
|
||||
|
|
|
@ -8,4 +8,4 @@ scrape_configs:
|
|||
# Targets should be probably changed to appropriate hosts and ports.
|
||||
# In this example, we connect to some addresses on a host machine
|
||||
# which is macOS running Docker for Mac.
|
||||
- targets: ['docker.for.mac.localhost:32794', 'docker.for.mac.localhost:32792']
|
||||
- targets: ['wnodetestcluster_wnode_3:8080', 'wnodetestcluster_wnode_2:8080', 'wnodetestcluster_wnode_1:8080']
|
||||
|
|
Loading…
Reference in New Issue