Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMetricAndTrackRateLimiterUsage ¶
func RegisterMetricAndTrackRateLimiterUsage(ownerName string, rateLimiter flowcontrol.RateLimiter) error
RegisterMetricAndTrackRateLimiterUsage registers a metric ownerName_rate_limiter_use in prometheus to track how much used rateLimiter is and starts a goroutine that updates this metric every updatePeriod
func UnregisterMetricAndUntrackRateLimiterUsage ¶ added in v1.9.1
UnregisterMetricAndUntrackRateLimiterUsage unregisters a metric ownerName_rate_limiter_use from prometheus and stops the goroutine that updates this metric
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.