component-base: Index | Files

package ratelimiter

import ""


Package Files


func RegisterMetricAndTrackRateLimiterUsage Uses

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

Package ratelimiter imports 5 packages (graph) and is imported by 68 packages. Updated 2019-12-18. Refresh now. Tools for package owners.