From e151dbd4b4863ba09caa4d013efd017e7b09491a Mon Sep 17 00:00:00 2001 From: Andrei Sandu <54316454+sandreim@users.noreply.github.com> Date: Tue, 28 Jun 2022 12:10:12 +0300 Subject: [PATCH] Update metric name and doc (#5716) Signed-off-by: Andrei Sandu --- node/network/gossip-support/src/metrics.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/node/network/gossip-support/src/metrics.rs b/node/network/gossip-support/src/metrics.rs index 67aa258921d8..99bbf72684d8 100644 --- a/node/network/gossip-support/src/metrics.rs +++ b/node/network/gossip-support/src/metrics.rs @@ -74,14 +74,15 @@ impl metrics::Metrics for Metrics { fn try_register(registry: &Registry) -> Result { let metrics = MetricsInner { is_authority: prometheus::register( - Gauge::new("polkadot_node_is_authority", "Tracks the node authority status across sessions. \ - An authority is any node that is a potential block producer in a session.")?, + Gauge::new("polkadot_node_is_active_validator", "Tracks if the validator is in the active set. \ + Updates at session boundary.")?, registry, )?, is_parachain_validator: prometheus::register( Gauge::new("polkadot_node_is_parachain_validator", - "Tracks the node parachain validator status across sessions. Parachain validators are a \ - subset of authorities that perform approval checking of all parachain candidates in a session.")?, + "Tracks if the validator participates in parachain consensus. Parachain validators are a \ + subset of the active set validators that perform approval checking of all parachain candidates in a session.\ + Updates at session boundary.")?, registry, )?, };