sigp / lighthouse

Ethereum consensus client in Rust
https://lighthouse.sigmaprime.io/
Apache License 2.0
2.81k stars 696 forks source link

Register processor queue length as histogram #6012

Open dapplion opened 4 days ago

dapplion commented 4 days ago

Issue Addressed

Second attempt at

It would be very useful to know how often queues reach zero or very high capacity values. Today we only have sparse snapshots of the queue length, which can change very rapidly in miliseconds

Proposed Changes

Register the queue length as histogram instead of a gauge.

This PR registers the length metric for a single queue instead of for all queues. Reasons why:

Metrics breaking changes

All metrics previously used to track queue lengths change. Also the type label for all metrics in the processor changes capitalization from gossip_block to GossipBlock. Is that okay? Does the IntoStaticStr macro support a different capitalization?