github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/common/monitor/config.go (about) 1 package monitor 2 3 // const 4 const ( 5 XNameSpace = xNameSpace 6 xNameSpace = "x" 7 orderSubSystem = "order" 8 stakingSubSystem = "staking" 9 streamSubSystem = "stream" 10 portSubSystem = "port" 11 ) 12 13 type prometheusConfig struct { 14 // when true, Prometheus metrics are served under /metrics on PrometheusListenAddr 15 Prometheus bool 16 } 17 18 // DefaultPrometheusConfig returns a default PrometheusConfig pointer 19 func DefaultPrometheusConfig() *prometheusConfig { 20 return &prometheusConfig{ 21 Prometheus: true, 22 } 23 }