Add metrics for validator subscriptions (#1302)

This commit is contained in:
Paul Hauner
2020-06-28 10:47:03 +10:00
committed by GitHub
parent 3953204727
commit 6e7d5c6a7c
2 changed files with 15 additions and 0 deletions

View File

@@ -36,4 +36,16 @@ lazy_static! {
"network_gossip_aggregated_attestations_tx_total",
"Count of gossip aggregated attestations transmitted"
);
/*
* Attestation subnet subscriptions
*/
pub static ref SUBNET_SUBSCRIPTION_REQUESTS: Result<IntCounter> = try_create_int_counter(
"network_subnet_subscriptions_total",
"Count of validator subscription requests."
);
pub static ref SUBNET_SUBSCRIPTION_AGGREGATOR_REQUESTS: Result<IntCounter> = try_create_int_counter(
"network_subnet_subscriptions_aggregator_total",
"Count of validator subscription requests where the subscriber is an aggregator."
);
}