[improve][broker][monitoring] metrics data flow control
Motivation
add metrics data flow control when Prometheus scrape metrics, to prevent high network usage.
Modifications
- add
MetricsDataFlowControllerclass - add
metricsDataFlowPermitPerSecondconfiguration
Documentation
Check the box below or label this PR directly.
Need to update docs?
-
[x]
doc-required(Your PR needs to update docs and you will update later) -
[ ]
doc-not-needed(Please explain why) -
[ ]
doc(Your PR contains doc changes) -
[ ]
doc-complete(Docs have been already added)
/pulsarbot run-failure-checks
What's case we need this? IMO, it should be working on some proxy.
if there is a big metrics response, say, 500MB, without flow control, it will comes high network usage and high messaging latency
@tjiuming It's better to start a discussion in the mailing list since it's a new feature for the Prometheus endpoint.
The pr had no activity for 30 days, mark with Stale label.