mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-16 08:58:20 +00:00
40 lines
1.6 KiB
Rust
40 lines
1.6 KiB
Rust
|
pub use lighthouse_metrics::*;
|
||
|
|
||
|
lazy_static! {
|
||
|
/*
|
||
|
* Gossip Rx
|
||
|
*/
|
||
|
pub static ref GOSSIP_BLOCKS_RX: Result<IntCounter> = try_create_int_counter(
|
||
|
"network_gossip_blocks_rx_total",
|
||
|
"Count of gossip blocks received"
|
||
|
);
|
||
|
pub static ref GOSSIP_UNAGGREGATED_ATTESTATIONS_RX: Result<IntCounter> = try_create_int_counter(
|
||
|
"network_gossip_unaggregated_attestations_rx_total",
|
||
|
"Count of gossip unaggregated attestations received"
|
||
|
);
|
||
|
pub static ref GOSSIP_UNAGGREGATED_ATTESTATIONS_IGNORED: Result<IntCounter> = try_create_int_counter(
|
||
|
"network_gossip_unaggregated_attestations_ignored_total",
|
||
|
"Count of gossip unaggregated attestations ignored by attestation service"
|
||
|
);
|
||
|
pub static ref GOSSIP_AGGREGATED_ATTESTATIONS_RX: Result<IntCounter> = try_create_int_counter(
|
||
|
"network_gossip_aggregated_attestations_rx_total",
|
||
|
"Count of gossip aggregated attestations received"
|
||
|
);
|
||
|
|
||
|
/*
|
||
|
* Gossip Tx
|
||
|
*/
|
||
|
pub static ref GOSSIP_BLOCKS_TX: Result<IntCounter> = try_create_int_counter(
|
||
|
"network_gossip_blocks_tx_total",
|
||
|
"Count of gossip blocks transmitted"
|
||
|
);
|
||
|
pub static ref GOSSIP_UNAGGREGATED_ATTESTATIONS_TX: Result<IntCounter> = try_create_int_counter(
|
||
|
"network_gossip_unaggregated_attestations_tx_total",
|
||
|
"Count of gossip unaggregated attestations transmitted"
|
||
|
);
|
||
|
pub static ref GOSSIP_AGGREGATED_ATTESTATIONS_TX: Result<IntCounter> = try_create_int_counter(
|
||
|
"network_gossip_aggregated_attestations_tx_total",
|
||
|
"Count of gossip aggregated attestations transmitted"
|
||
|
);
|
||
|
}
|