Open BulatSaif opened 1 year ago
- can we have
polkadot_node_is_active_validator
or a similar metric for parachain
Probably better to remove this entirely and move the metric to Substrate.
2. can we remove
polkadot_node_is_active_validator
from relaychain part of the collator if the--validator
flag is not provided
I would not remove metrics based on some flag. People will be confused why the flag doesn't exist.
I would not remove metrics based on some flag.
Me too, but it is current behavior of Polkadot:
--validator
added)
# docker run -p 9615:9615 -it --rm parity/polkadot:v0.9.42 --prometheus-external --validator
curl -s 127.0.0.1:9615/metrics | grep polkadot_node_is_active_validator
# HELP polkadot_node_is_active_validator Tracks if the validator is in the active set. Updates at session boundary.
# TYPE polkadot_node_is_active_validator gauge
polkadot_node_is_active_validator{chain="polkadot"} 0
# docker run -p 9615:9615 -it --rm parity/polkadot:v0.9.42 --prometheus-external
curl -s 127.0.0.1:9615/metrics | grep polkadot_node_is_active_validator
It will be nice to have constancy between the standalone relaychain and embedded relaycahin in collator.
Ahh yeah because the subsystem doing this is not registered.
I notice that the collator does not have
polkadot_node_is_active_validator
metric and I did not find any alternative. But relaychain part of the collator reportspolkadot_node_is_active_validator=0
which creates false positive alerts.polkadot_node_is_active_validator
or a similar metric for parachainpolkadot_node_is_active_validator
from relaychain part of the collator if the--validator
flag is not providedExample of metrics:
cli which was used to run a node, as you can see no flag
--validator
only--collator
but it set for parachain.