prometheus

package
v0.0.0-...-172daef Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartCacheMetricsUpdater

func StartCacheMetricsUpdater(m *Monitor, cache *ristretto.Cache, interval time.Duration, logger logr.Logger)

Types

type Monitor

type Monitor struct {
	ModulesDeployed  prometheus.Gauge
	CacheHits        prometheus.Gauge
	CacheMisses      prometheus.Gauge
	CacheKeysAdded   prometheus.Gauge
	CacheCostAdded   prometheus.Gauge
	CacheKeysEvicted prometheus.Gauge
	CacheCostEvicted prometheus.Gauge

	// Reconciler Metrics
	ReconciliationDuration      prometheus.Histogram
	ReconciliationCounter       prometheus.Counter
	FailedReconciliationCounter prometheus.Counter
}

func NewMonitor

func NewMonitor(logger logr.Logger) (Monitor, error)

func (*Monitor) DecModule

func (m *Monitor) DecModule()

func (*Monitor) IncModule

func (m *Monitor) IncModule()

func (*Monitor) ObserveReconciliationDuration

func (m *Monitor) ObserveReconciliationDuration(duration float64)

func (*Monitor) OnFailedReconciliation

func (m *Monitor) OnFailedReconciliation()

func (*Monitor) OnReconciliation

func (m *Monitor) OnReconciliation()

func (*Monitor) UpdateCacheMetrics

func (m *Monitor) UpdateCacheMetrics(cache *ristretto.Cache)

Jump to

Keyboard shortcuts

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