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 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 {
TxpoolIngressTx metrics.Counter
TxpoolPooledTx metrics.Counter
TxpoolDiscardedTx metrics.Counter
TxpoolDuplacatedTx metrics.Counter
TxpoolOutgoingTx metrics.Counter
BlockHeight metrics.Gauge
BlockTxNum metrics.Gauge
CommittedTx metrics.Counter
}
PromMetrics contains metrics exposed by Consensus.
var JTMetrics *Metrics
type PrometheusConfig ¶
Click to show internal directories.
Click to hide internal directories.