Documentation
¶
Overview ¶
* Define types and structures related to prometheus metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartExpvarServer ¶
func StartExpvarServer(config ExpvarConfig)
func StartPprofServer ¶ added in v1.0.0
func StartPprofServer(config PprofConfig)
func StartPrometheusServer ¶
func StartPrometheusServer(config PrometheusConfig)
startPrometheusServer starts a Prometheus HTTP server, listening for metrics collectors on addr.
func StopPrometheusServer ¶
func StopPrometheusServer()
stopPrometheusServer stops a Prometheus HTTP server
Types ¶
type ExpvarConfig ¶
type Metrics ¶
type Metrics struct {
ApigatewayReceivedTx metrics.Counter
SwitchTakenTx metrics.Counter
TxpoolIngressTx metrics.Counter
TxpoolPooledTx metrics.Counter
TxpoolDiscardedTx metrics.Counter
TxpoolDuplacatedTx metrics.Counter
TxpoolOutgoingTx metrics.Counter
ConsensusPeerId metrics.Gauge
ConsensusMasterId metrics.Gauge
BlockHeight metrics.Gauge
BlockTxNum metrics.Gauge
CommittedTx metrics.Counter
}
PromMetrics contains metrics exposed by Consensus.
var JTMetrics *Metrics
type PprofConfig ¶ added in v1.0.0
type PrometheusConfig ¶
Click to show internal directories.
Click to hide internal directories.