hashicorp / memberlist

Golang package for gossip based membership and failure detection
Mozilla Public License 2.0
3.61k stars 435 forks source link

Adding the regular emitting of the memberlist broadcast queue #275

Closed jmurret closed 2 years ago

jmurret commented 2 years ago

Implementation

This implementation follows the pattern that exists in serf for capturing intent queue metrics.

Verification

I verified this change by following the Layer 7 Observability Learn Guide to run prometheus and Grafana and view the metrics in a Grafana Dashboard.

Before

Below you can see that consul_memberlist_queue_Intent (this has since been renamed to consul_memberlist_queue_broadcast) is not available as a metric.

Screen Shot 2022-08-25 at 4 40 44 PM

After

Below you can see that consul_memberlist_queue_Intent (this has since been renamed to consul_memberlist_queue_broadcast) is available as a metric and is showing data in the dashboard.

Screen Shot 2022-08-25 at 4 33 37 PM