component-base: k8s.io/component-base/metrics/prometheus/ratelimiter Index | Files

package ratelimiter

import "k8s.io/component-base/metrics/prometheus/ratelimiter"

Index

Package Files

rate_limiter.go

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.