metrics

package
v0.0.0-...-0248f70 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	IncExpiredCacheResponse(key string)
}

func NewNoOpMetrics

func NewNoOpMetrics() Metrics

type PrometheusMetrics

type PrometheusMetrics struct {
	// contains filtered or unexported fields
}

PrometheusMetrics is a Prometheus implementation of Metric interface.

func NewPrometheusMetrics

func NewPrometheusMetrics(environment string) *PrometheusMetrics

NewPrometheusMetrics returns a new instance of PrometheusMetrics.

func (*PrometheusMetrics) IncExpiredCacheResponse

func (m *PrometheusMetrics) IncExpiredCacheResponse(key string)

Jump to

Keyboard shortcuts

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