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:
Pierre KriegerandBastian Köcher authored and GitHub committed 2021-12-09 11:21:27 +01:00
1 parent 667dec91bf
commit 443bdc20d6
21 files changed
+125 -102

No files matched your search

@@ -508,14 +508,14 @@ impl Metrics {
Ok(Self {
registered_messages: register(
Counter::new(
"network_gossip_registered_messages_total",
"substrate_network_gossip_registered_messages_total",
"Number of registered messages by the gossip service.",
)?,
registry,
)?,
expired_messages: register(
Counter::new(
"network_gossip_expired_messages_total",
"substrate_network_gossip_expired_messages_total",
"Number of expired messages by the gossip service.",
)?,
registry,