Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update metric name and doc (#5716)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
  • Loading branch information
sandreim authored and al3mart committed Jul 14, 2022
1 parent b24a6e4 commit e151dbd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions node/network/gossip-support/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ impl metrics::Metrics for Metrics {
fn try_register(registry: &Registry) -> Result<Self, PrometheusError> {
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,
)?,
};
Expand Down

0 comments on commit e151dbd

Please sign in to comment.