Documentation ¶
Index ¶
Constants ¶
View Source
const ( // metrics label. MetricsLabelTenant = "tenant_id" // metrics name. MetricsNameRuleNum = "rule_num" // metrics name. MetricsNameRuleMax = "rule_max" )
Variables ¶
View Source
var CollectorRuleNumber = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: MetricsNameRuleNum, Help: "rule num.", }, []string{MetricsLabelTenant}, )
View Source
var Metrics = []prometheus.Collector{CollectorRuleNumber}
var CollectorRuleMax = prometheus.NewGaugeVec(
prometheus.GaugeOpts{ Name: MetricsNameRuleMax, Help: "rule max.", }, []string{MetricsLabelTenant},
) var Metrics = []prometheus.Collector{CollectorRuleMax, CollectorRuleNumber}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.