mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Remove Prometheus metrics prefix (#9543)
* Remove Prometheus metrics prefix * Fix line widths * Missed some metrics * Fix CLI * Run rustfmt on modified files * Missing prefixes * Hopefully fix compilation * Rustfmt protocol.rs * Should compile now I guess * Rustfmt Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -1299,7 +1299,7 @@ impl Metrics {
|
||||
messages_validated: register(
|
||||
CounterVec::new(
|
||||
Opts::new(
|
||||
"finality_grandpa_communication_gossip_validator_messages",
|
||||
"substrate_finality_grandpa_communication_gossip_validator_messages",
|
||||
"Number of messages validated by the finality grandpa gossip validator.",
|
||||
),
|
||||
&["message", "action"],
|
||||
|
||||
@@ -404,19 +404,19 @@ impl Metrics {
|
||||
) -> Result<Self, PrometheusError> {
|
||||
Ok(Self {
|
||||
finality_grandpa_round: register(
|
||||
Gauge::new("finality_grandpa_round", "Highest completed GRANDPA round.")?,
|
||||
Gauge::new("substrate_finality_grandpa_round", "Highest completed GRANDPA round.")?,
|
||||
registry,
|
||||
)?,
|
||||
finality_grandpa_prevotes: register(
|
||||
Counter::new(
|
||||
"finality_grandpa_prevotes_total",
|
||||
"substrate_finality_grandpa_prevotes_total",
|
||||
"Total number of GRANDPA prevotes cast locally.",
|
||||
)?,
|
||||
registry,
|
||||
)?,
|
||||
finality_grandpa_precommits: register(
|
||||
Counter::new(
|
||||
"finality_grandpa_precommits_total",
|
||||
"substrate_finality_grandpa_precommits_total",
|
||||
"Total number of GRANDPA precommits cast locally.",
|
||||
)?,
|
||||
registry,
|
||||
|
||||
@@ -100,7 +100,7 @@ impl Metrics {
|
||||
Ok(Self {
|
||||
global_waiting_messages: register(
|
||||
Gauge::new(
|
||||
"finality_grandpa_until_imported_waiting_messages_number",
|
||||
"substrate_finality_grandpa_until_imported_waiting_messages_number",
|
||||
"Number of finality grandpa messages waiting within the until imported queue.",
|
||||
)?,
|
||||
registry,
|
||||
|
||||
Reference in New Issue
Block a user