promMetrics

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 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
	RuleCPUUsageGauge    *prometheus.GaugeVec
)

Functions

func InitServerMetrics

func InitServerMetrics()

func RegisterMetrics

func RegisterMetrics()

func RemoveRuleStatus

func RemoveRuleStatus(ruleID string)

func SetRuleCPUUsageGauge

func SetRuleCPUUsageGauge(ruleID string, value int)

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