mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 07:37:57 +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:
@@ -41,28 +41,34 @@ impl Metrics {
|
||||
Ok(Self {
|
||||
import_queue_processed: register(
|
||||
CounterVec::new(
|
||||
Opts::new("import_queue_processed_total", "Blocks processed by import queue"),
|
||||
Opts::new(
|
||||
"substrate_import_queue_processed_total",
|
||||
"Blocks processed by import queue",
|
||||
),
|
||||
&["result"], // 'success or failure
|
||||
)?,
|
||||
registry,
|
||||
)?,
|
||||
block_verification_time: register(
|
||||
HistogramVec::new(
|
||||
HistogramOpts::new("block_verification_time", "Time taken to verify blocks"),
|
||||
HistogramOpts::new(
|
||||
"substrate_block_verification_time",
|
||||
"Time taken to verify blocks",
|
||||
),
|
||||
&["result"],
|
||||
)?,
|
||||
registry,
|
||||
)?,
|
||||
block_verification_and_import_time: register(
|
||||
Histogram::with_opts(HistogramOpts::new(
|
||||
"block_verification_and_import_time",
|
||||
"substrate_block_verification_and_import_time",
|
||||
"Time taken to verify and import blocks",
|
||||
))?,
|
||||
registry,
|
||||
)?,
|
||||
justification_import_time: register(
|
||||
Histogram::with_opts(HistogramOpts::new(
|
||||
"justification_import_time",
|
||||
"substrate_justification_import_time",
|
||||
"Time taken to import justifications",
|
||||
))?,
|
||||
registry,
|
||||
|
||||
Reference in New Issue
Block a user