metrics

package
v0.0.0-...-540bb61 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DeploymentName is a label key used for the name of a deployment
	DeploymentName = "deployment"
	// ActionName is a label key used for the name of an action
	ActionName = "action"
	// ActionPriority is a label key used for the priority of an action
	ActionPriority = "priority"
	// Result is a label key used for the result of an action (Success|Failed)
	Result = "result"
	// Success is a label value used for successful actions
	Success = "success"
	// Failed is a label value used for failed actions
	Failed = "failed"
)

Variables

This section is empty.

Functions

func MustRegisterCounter

func MustRegisterCounter(component, name, help string) prometheus.Counter

MustRegisterCounter creates and registers a counter. Must be called from `init`.

func MustRegisterCounterVec

func MustRegisterCounterVec(component, name, help string, labelNames ...string) *prometheus.CounterVec

MustRegisterCounterVec creates and registers a counter vector. Must be called from `init`.

func MustRegisterGauge

func MustRegisterGauge(component, name, help string) prometheus.Gauge

MustRegisterGauge creates and registers a gauge. Must be called from `init`.

func MustRegisterGaugeVec

func MustRegisterGaugeVec(component, name, help string, labelNames ...string) *prometheus.GaugeVec

MustRegisterGaugeVec creates and registers a gauge vector. Must be called from `init`.

func MustRegisterSummary

func MustRegisterSummary(component, name, help string, objectives map[float64]float64) prometheus.Summary

MustRegisterSummary creates and registers a summary. Must be called from `init`.

func SetDuration

func SetDuration(g prometheus.Gauge, startTime time.Time)

SetDuration sets a gauge value for the duration since the given start time in seconds.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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