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

Fix confusing metric naming #5716

Merged
merged 1 commit into from
Jun 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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