metrics

package
v0.0.0-...-73eb7b8 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "wonderwall"

	LabelAmr       = "amr"
	LabelHpa       = "hpa"
	LabelOperation = "operation"
	LabelProvider  = "provider"
	LabelRedirect  = "redirect"
)
View Source
const (
	LogoutOperationFrontChannel  = "front_channel"
	LogoutOperationLocal         = "local"
	LogoutOperationSelfInitiated = "self_initiated"
)
View Source
const (
	RedisOperationRead   = "Read"
	RedisOperationWrite  = "Write"
	RedisOperationUpdate = "Update"
	RedisOperationDelete = "Delete"
)
View Source
const (
	HpaRate = "rate"
)

Variables

View Source
var (
	RedisLatency = redisLatency()
	Logins       = logins()
	Logouts      = logouts()
)

Functions

func Handle

func Handle(address string, provider config.Provider) error

func InitLabels

func InitLabels()

InitLabels zeroes out all possible label combinations

func ObserveLogin

func ObserveLogin(amrValue, redirect string)

func ObserveLogout

func ObserveLogout(operation LogoutOperation)

func ObserveRedisLatency

func ObserveRedisLatency(operation string, fun func() error) error

func Register

func Register(registry prometheus.Registerer)

func WithProvider

func WithProvider(provider string)

Types

type Hpa

type Hpa = string

type LogoutOperation

type LogoutOperation = string

type RedisOperation

type RedisOperation = string

Jump to

Keyboard shortcuts

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