From f7d4fafa73b513d5ad3e0aaf22c62820b7a2454e Mon Sep 17 00:00:00 2001 From: Marko Date: Thu, 3 Sep 2020 09:50:31 +0200 Subject: [PATCH] docs: add missing metrics (#5325) ## Description Add missing metrics. `Blockchain/v2` exposes metrics for events. I don't find these as something a node operator should utilize as it does not bring insight. Closes: #XXX --- consensus/metrics.go | 2 -- docs/tendermint-core/metrics.md | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/consensus/metrics.go b/consensus/metrics.go index b4c6458dc..86bbf678f 100644 --- a/consensus/metrics.go +++ b/consensus/metrics.go @@ -138,14 +138,12 @@ func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics { Name: "byzantine_validators_power", Help: "Total power of the byzantine validators.", }, labels).With(labelsAndValues...), - BlockIntervalSeconds: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ Namespace: namespace, Subsystem: MetricsSubsystem, Name: "block_interval_seconds", Help: "Time between this and the last block.", }, labels).With(labelsAndValues...), - NumTxs: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ Namespace: namespace, Subsystem: MetricsSubsystem, diff --git a/docs/tendermint-core/metrics.md b/docs/tendermint-core/metrics.md index 2a1e1e343..67eb13e0d 100644 --- a/docs/tendermint-core/metrics.md +++ b/docs/tendermint-core/metrics.md @@ -37,6 +37,7 @@ The following metrics are available: | consensus_block_parts | counter | peer_id | number of blockparts transmitted by peer | | consensus_latest_block_height | gauge | | /status sync_info number | | consensus_fast_syncing | gauge | | either 0 (not fast syncing) or 1 (syncing) | +| consensus_state_syncing | gauge | | either 0 (not state syncing) or 1 (syncing) | | consensus_block_size_bytes | Gauge | | Block size in bytes | | p2p_peers | Gauge | | Number of peers node's connected to | | p2p_peer_receive_bytes_total | counter | peer_id, chID | number of bytes per channel received from a given peer |