Documentation ¶
Index ¶
- Constants
- func MustRegisterCounter(component, name, help string) prometheus.Counter
- func MustRegisterCounterVec(component, name, help string, labelNames ...string) *prometheus.CounterVec
- func MustRegisterGauge(component, name, help string) prometheus.Gauge
- func MustRegisterGaugeVec(component, name, help string, labelNames ...string) *prometheus.GaugeVec
- func MustRegisterSummary(component, name, help string, objectives map[float64]float64) prometheus.Summary
- func SetDuration(g prometheus.Gauge, startTime time.Time)
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.
Click to show internal directories.
Click to hide internal directories.