metrics

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GaugeApplicationInstallFailed = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "applicationInstallFailed",
		Help: "application install failed count",
	}, []string{"cluster", "application"})
	GaugeApplicationUpgradeFailed = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "applicationUpgradeFailed",
		Help: "application upgrade failed count",
	}, []string{"cluster", "application"})
	GaugeApplicationRollbackFailed = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "applicationRollbackFailed",
		Help: "application rollback failed count",
	}, []string{"cluster", "application"})
	GaugeApplicationSyncFailed = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "applicationSyncFailed",
		Help: "application sync failed count",
	}, []string{"cluster", "application"})
)

Functions

func RegisterMetricAndTrackRateLimiterUsage

func RegisterMetricAndTrackRateLimiterUsage(ownerName string, rateLimiter flowcontrol.RateLimiter) error

RegisterMetricAndTrackRateLimiterUsage registers a metric ownerName_rate_limiter_use in prometheus to track how much used rateLimiter is and starts a goroutine that updates this metric every updatePeriod

Types

This section is empty.

Jump to

Keyboard shortcuts

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