metrics

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TotalHttpSubscriptions = "total_http_subscriptions"
	TotalHttpRoutes        = "total_http_routes"
	TotalTcpSubscriptions  = "total_tcp_subscriptions"
	TotalTcpRoutes         = "total_tcp_routes"
	TotalTokenErrors       = "total_token_errors"
	KeyRefreshEvents       = "key_refresh_events"
)

Variables

This section is empty.

Functions

func GetKeyVerificationRefreshCount

func GetKeyVerificationRefreshCount() int64

func GetTokenErrors

func GetTokenErrors() int64

func IncrementKeyVerificationRefreshCount

func IncrementKeyVerificationRefreshCount()

func IncrementTokenError

func IncrementTokenError()

Types

type MetricsReporter

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

func NewMetricsReporter

func NewMetricsReporter(database db.DB, stats PartialStatsdClient, ticker *time.Ticker, logger lager.Logger) *MetricsReporter

func (*MetricsReporter) Run

func (r *MetricsReporter) Run(signals <-chan os.Signal, ready chan<- struct{}) error

type PartialStatsdClient

type PartialStatsdClient interface {
	GaugeDelta(stat string, value int64, rate float32) error
	Gauge(stat string, value int64, rate float32) error
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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