Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions crates/pbs/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,14 @@ lazy_static! {
&["http_status_code", "endpoint"],
PBS_METRICS_REGISTRY
).unwrap();

/// Count of v2 submit_block requests that fell back to the v1 endpoint
/// because the relay returned 404 on v2. A high value indicates the relay
/// fleet has not been upgraded to support submitBlindedBlockV2.
pub static ref V2_FALLBACK_TO_V1: IntCounterVec = register_int_counter_vec_with_registry!(
"pbs_submit_block_v2_fallback_to_v1_total",
"Count of v2 submit_block requests that fell back to v1 because the relay did not support v2",
&["relay_id"],
PBS_METRICS_REGISTRY
).unwrap();
}
Loading