Enable ethereum metrics collection (#616)
This commit is contained in:
parent
0dd47ab7bc
commit
ca5a8f6669
|
@ -51,6 +51,8 @@ var (
|
||||||
statsEnabled = flag.Bool("stats", false, "Expose node stats via /debug/vars expvar endpoint or Prometheus (log by default)")
|
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")
|
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
|
// shh stuff
|
||||||
identityFile = flag.String("shh.identityfile", "", "Protocol identity file (private key used for asymmetric encryption)")
|
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)")
|
passwordFile = flag.String("shh.passwordfile", "", "Password file (password is used for symmetric encryption)")
|
||||||
|
|
|
@ -27,7 +27,7 @@ const (
|
||||||
ListenAddr = ":0"
|
ListenAddr = ":0"
|
||||||
|
|
||||||
// APIModules is a list of modules to expose via any type of RPC (HTTP, IPC, in-proc)
|
// 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 is a host interface for the websocket RPC server
|
||||||
WSHost = "localhost"
|
WSHost = "localhost"
|
||||||
|
|
Loading…
Reference in New Issue