Documentation
¶
Overview ¶
Package metrics defines the Prometheus collectors of a Foreman client.
Index ¶
Constants ¶
View Source
const DefaultLabelCap = 50
View Source
const Other = "other"
Variables ¶
View Source
var ( DurationBuckets = []float64{ 0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 30, 60, 300, 900, 3600, } LatencyBuckets = []float64{ 0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 30, 60, 300, 3600, } FetchBuckets = []float64{0.0001, 0.00025, 0.0005, 0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 1, 5} )
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
Inserted *prometheus.CounterVec
Completed *prometheus.CounterVec
Duration *prometheus.HistogramVec
QueueLatency *prometheus.HistogramVec
QueueDepth *prometheus.GaugeVec
Running *prometheus.GaugeVec
Leader prometheus.Gauge
Rescued prometheus.Counter
Stale prometheus.Counter
PeriodicSkipped *prometheus.CounterVec
Unserved *prometheus.CounterVec
FetchDuration *prometheus.HistogramVec
MaintenanceRun *prometheus.GaugeVec
MaintenanceRows *prometheus.CounterVec
BuildInfo *prometheus.GaugeVec
// contains filtered or unexported fields
}
Metrics holds the Prometheus collectors of a client.
func New ¶
func New(reg prometheus.Registerer) (*Metrics, error)
New creates the collectors and registers them with reg.
func (*Metrics) ObserveMaintenance ¶
Click to show internal directories.
Click to hide internal directories.