NOTE: This issue is already discussed shortly. Please refer here for details.
This issue focuses to introduce ClusterMetricsConsumer and provide interface to let users plugin their consumers.
ClusterMetricsConsumers will be attached to Nimbus, and leader of Nimbus will push cluster related metrics to ClusterMetricsConsumer.
Requirements of ClusterMetricsConsumer are here:
- Only leader of Nimbus should publish cluster metrics to consumer.
- Nimbus shouldn't be affected by crashing or heavy latency on consumer.
- Consumer should have resilient when crashing or Nimbus should take care of.