Documentation ¶
Overview ¶
Package metrics provides prometheus instrumentation for CAD
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Alerts is a metric counting all alerts CAD received Alerts = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: namespace, Subsystem: subsystemInvestigate, Name: "alerts_total", Help: "counts investigated alerts by alert and event type", }, []string{alertTypeLabel}) // LimitedSupportSet is a counter for limited support reasons set by cad LimitedSupportSet = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: namespace, Subsystem: subsystemInvestigate, Name: "limitedsupport_set_total", Help: "counts investigations resulting in setting a limited support reason", }, []string{alertTypeLabel, lsSummaryLabel}) // ServicelogPrepared is a counter for investigation ending in a prepared servicelog ServicelogPrepared = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: namespace, Subsystem: subsystemInvestigate, Name: "servicelog_prepared_total", Help: "counts investigations resulting in a prepared servicelog attached to the incident notes", }, []string{alertTypeLabel}) // ServicelogSent is a counter for investigation ending in a sent servicelog ServicelogSent = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: namespace, Subsystem: subsystemInvestigate, Name: "servicelog_sent_total", Help: "counts investigations resulting in a sent servicelog", }, []string{alertTypeLabel}) )
Functions ¶
func Inc ¶
func Inc(counterVec *prometheus.CounterVec, lsv ...string)
Inc takes a counterVec and a set of label values and increases by one
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.