Add more paths to HTTP API metrics
## Proposed Changes
Expand the set of paths tracked by the HTTP API metrics to include all paths hit by the validator client.
These paths were only partially updated for Altair, so we were missing some of the sync committee and v2 APIs.
@@ -200,18 +200,29 @@ pub fn prometheus_metrics() -> warp::filters::log::Log<impl Fn(warp::filters::lo
// First line covers `POST /v1/beacon/blocks` only
equals("v1/beacon/blocks")
+ .or_else(|| starts_with("v1/validator/blocks"))
+ .or_else(|| starts_with("v2/validator/blocks"))
+ .or_else(|| starts_with("v1/validator/blinded_blocks"))
.or_else(|| starts_with("v1/validator/duties/attester"))
.or_else(|| starts_with("v1/validator/duties/proposer"))
+ .or_else(|| starts_with("v1/validator/duties/sync"))
.or_else(|| starts_with("v1/validator/attestation_data"))
- .or_else(|| starts_with("v1/validator/blocks"))
- .or_else(|| starts_with("v2/validator/blocks"))
.or_else(|| starts_with("v1/validator/aggregate_attestation"))
.or_else(|| starts_with("v1/validator/aggregate_and_proofs"))
+ .or_else(|| starts_with("v1/validator/sync_committee_contribution"))
+ .or_else(|| starts_with("v1/validator/contribution_and_proofs"))
.or_else(|| starts_with("v1/validator/beacon_committee_subscriptions"))
+ .or_else(|| starts_with("v1/validator/sync_committee_subscriptions"))
+ .or_else(|| starts_with("v1/beacon/pool/attestations"))
+ .or_else(|| starts_with("v1/beacon/pool/sync_committees"))
+ .or_else(|| starts_with("v1/beacon/blocks/head/root"))
+ .or_else(|| starts_with("v1/validator/prepare_beacon_proposer"))
+ .or_else(|| starts_with("v1/validator/register_validator"))
.or_else(|| starts_with("v1/beacon/"))
.or_else(|| starts_with("v2/beacon/"))
.or_else(|| starts_with("v1/config/"))
.or_else(|| starts_with("v1/debug/"))
+ .or_else(|| starts_with("v2/debug/"))
.or_else(|| starts_with("v1/events/"))
.or_else(|| starts_with("v1/node/"))
.or_else(|| starts_with("v1/validator/"))
