metrics

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package metrics implements all monitoring-related Prometheus metrics for this repo.

Index

Constants

This section is empty.

Variables

View Source
var (
	GatherRuns = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "gather_run_total",
			Help: "The number of times each gather command has been run",
		},
		[]string{"datatype"},
	)
	GatherErrors = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "gather_error_total",
			Help: "The number of times each gather command has had an error",
		},
		[]string{"datatype"},
	)
	GatherRuntime = promauto.NewHistogramVec(
		prometheus.HistogramOpts{
			Name: "gather_command_runtime_seconds",
			Help: "How long each command took to run in seconds",
		},
		[]string{"datatype"},
	)
	ConfigLoadTime = promauto.NewGauge(
		prometheus.GaugeOpts{
			Name: "config_load_timestamp",
			Help: "The timestamp of the time the config was loaded from disk",
		},
	)
	ConfigLoadCount = promauto.NewCounter(
		prometheus.CounterOpts{
			Name: "config_loads_total",
			Help: "The number of times the config has been reloaded",
		},
	)
	ConfigLoadFailures = promauto.NewCounter(
		prometheus.CounterOpts{
			Name: "config_load_failures_total",
			Help: "The number of times the config has not been reloaded, even after reload was requested",
		},
	)
)

Metrics for monitoring with Prometheus.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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