metrics

package module
v0.0.0-...-8961dae Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// MPASStatusStarted signifies that an MPAS installation has been started.
	MPASStatusStarted = "started"
	// MPASStatusSuccess signifies that an MPAS installation has been finished successfully.
	MPASStatusSuccess = "success"
	// MPASStatusFailure signifies that an MPAS installation has failed.
	MPASStatusFailure = "failure"
)
View Source
const (
	// MPASProductInstallationCounterLabel tracks mpas product installation counts and status.
	MPASProductInstallationCounterLabel = "mpas_product_installed"

	// MPASProductInstallationCounterStatusLabel tracks mpas product installation counts and status.
	MPASProductInstallationCounterStatusLabel = "mpas_product_status"
)
View Source
const (
	// MPASProductComponentVersionCounterLabel tracks the status of a component version belonging to a product.
	MPASProductComponentVersionCounterLabel = "mpas_component_version_installed"
	// MPASProductLocalizationCounterLabel tracks the status of a localization belonging to a product.
	MPASProductLocalizationCounterLabel = "mpas_localization_installed"
	// MPASProductConfigurationCounterLabel tracks the status of a configuration belonging to a product.
	MPASProductConfigurationCounterLabel = "mpas_configuration_installed"
	// MPASProductDeployerCounterLabel tracks the status of a deployer belonging to a product.
	MPASProductDeployerCounterLabel = "mpas_deployer_installed"
	// MPASProductResourceCounterLabel tracks the status of a resource belonging to a product.
	MPASProductResourceCounterLabel = "mpas_resource_installed"
)

Variables

This section is empty.

Functions

func MustRegisterCounter

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

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

func MustRegisterCounterVec

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

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

func MustRegisterGauge

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

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

func MustRegisterGaugeVec

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

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

func MustRegisterHistogram

func MustRegisterHistogram(namespace, component, name, help string, buckets []float64) prometheus.Histogram

MustRegisterHistogram creates and registers a histogram. Must be called from `init`.

func MustRegisterHistogramVec

func MustRegisterHistogramVec(namespace, component, name, help string, buckets []float64, labelNames ...string) *prometheus.HistogramVec

MustRegisterHistogramVec creates and registers a histogram vector. Must be called from `init`.

func MustRegisterSummary

func MustRegisterSummary(namespace, 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.

func SetDurationObserver

func SetDurationObserver(o prometheus.Observer, startTime time.Time)

SetDurationObserver sets an observe value for the duration since the given start time in seconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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