Enable ethereum metrics collection (#616)

This commit is contained in:
Dmitry Shulyak 2018-02-05 21:25:40 +02:00 committed by Ivan Daniluk
parent 0dd47ab7bc
commit ca5a8f6669
2 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,8 @@ var (
statsEnabled = flag.Bool("stats", false, "Expose node stats via /debug/vars expvar endpoint or Prometheus (log by default)")
statsAddr = flag.String("stats.addr", "0.0.0.0:8080", "HTTP address with /debug/vars endpoint")
// don't change the name of this flag, https://github.com/ethereum/go-ethereum/blob/master/metrics/metrics.go#L41
ethereumMetrics = flag.Bool("metrics", false, "Expose ethereum metrics with debug_metrics jsonrpc call.")
// shh stuff
identityFile = flag.String("shh.identityfile", "", "Protocol identity file (private key used for asymmetric encryption)")
passwordFile = flag.String("shh.passwordfile", "", "Password file (password is used for symmetric encryption)")

View File

@ -27,7 +27,7 @@ const (
ListenAddr = ":0"
// APIModules is a list of modules to expose via any type of RPC (HTTP, IPC, in-proc)
APIModules = "db,eth,net,web3,shh,personal,admin"
APIModules = "db,eth,net,web3,shh,personal,admin,debug"
// WSHost is a host interface for the websocket RPC server
WSHost = "localhost"