promMetrics

package
v2.0.0-dev.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LblStatusType = "status"
	LblRuleIDType = "ruleID"

	LBlRuleRunning = "running"
	LblRuleStop    = "stop"
)

Variables

View Source
var (
	RuleStatusCountGauge *prometheus.GaugeVec
	RuleStatusGauge      *prometheus.GaugeVec
)

Functions

func InitServerMetrics

func InitServerMetrics()

func RegisterMetrics

func RegisterMetrics()

func RemoveRuleStatus

func RemoveRuleStatus(ruleID string)

func SetRuleStatus

func SetRuleStatus(ruleID string, value int)

func SetRuleStatusCountGauge

func SetRuleStatusCountGauge(isRunning bool, count int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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