Documentation ¶
Index ¶
- Constants
- func MustRegisterCounter(namespace, component, name, help string) prometheus.Counter
- func MustRegisterCounterVec(namespace, component, name, help string, labelNames ...string) *prometheus.CounterVec
- func MustRegisterGauge(namespace, component, name, help string) prometheus.Gauge
- func MustRegisterGaugeVec(namespace, component, name, help string, labelNames ...string) *prometheus.GaugeVec
- func MustRegisterHistogram(namespace, component, name, help string, buckets []float64) prometheus.Histogram
- func MustRegisterHistogramVec(namespace, component, name, help string, buckets []float64, ...) *prometheus.HistogramVec
- func MustRegisterSummary(namespace, component, name, help string, objectives map[float64]float64) prometheus.Summary
- func SetDuration(g prometheus.Gauge, startTime time.Time)
- func SetDurationObserver(o prometheus.Observer, startTime time.Time)
Constants ¶
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" )
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" )
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.