metrics

package
v0.0.0-...-ef1509a Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 6

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