metrics

package
v0.0.0-...-96f7096 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DirtyLabel = "dirty"

Variables

This section is empty.

Functions

func IncDataloaderCacheClears

func IncDataloaderCacheClears(dataloader string)

func IncDataloaderCalls

func IncDataloaderCalls(dataloader string)

func IncDataloaderLoads

func IncDataloaderLoads(dataloader string)

func IncDeleteErrorCounter

func IncDeleteErrorCounter(numErrors int)

func IncExternalCalls

func IncExternalCalls(systemName string, statusCode int)

func IncExternalCallsByError

func IncExternalCallsByError(systemName string, err error)

func IncExternalHTTPCalls

func IncExternalHTTPCalls(systemName string, resp *http.Response, err error)

func IncReconcilerCounter

func IncReconcilerCounter(name sqlc.ReconcilerName, state ReconcilerState)

func IncReconcilerMaxAttemptsExhaustion

func IncReconcilerMaxAttemptsExhaustion()

func MeasureReconcileTeamDuration

func MeasureReconcileTeamDuration() *prometheus.Timer

func MeasureReconcilerDuration

func MeasureReconcilerDuration(reconciler sqlc.ReconcilerName) *prometheus.Timer

func SetPendingTeamCount

func SetPendingTeamCount(numTeams int)

func SetSchemaVersion

func SetSchemaVersion(version uint, dirty bool)

Types

type ReconcilerState

type ReconcilerState string
const (
	ReconcilerStateStarted    ReconcilerState = "started"
	ReconcilerStateFailed     ReconcilerState = "failed"
	ReconcilerStateSuccessful ReconcilerState = "successful"
)

Jump to

Keyboard shortcuts

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