metrics

package
v1.23.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RateLimitLatency = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Subsystem: rateLimitSubsystem,
			Name:      rateLimitLatencyKey,
			Help:      "Latency of the RateLimiter Accept Operation",

			Buckets: prometheus.ExponentialBuckets(0.5, 2, 14),
		},
		rateLimitLatencyMetricsLabels,
	)
)

Functions

func PublishRateLimiterMetrics

func PublishRateLimiterMetrics(key string, start time.Time)

func RegisterMetrics

func RegisterMetrics()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL