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.
Click to show internal directories.
Click to hide internal directories.