metrics

package
v0.0.0-...-cba6ad5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 1 Imported by: 0

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},
)

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.

Jump to

Keyboard shortcuts

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