metrics

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusMetrics

type PrometheusMetrics struct {

	// HTTP handler metrics (used by the middleware).
	HTTPRequestsTotal    *prometheus.CounterVec
	HTTPRequestDuration  *prometheus.HistogramVec
	HTTPRequestsInFlight prometheus.Gauge
	// contains filtered or unexported fields
}

PrometheusMetrics implements orchestrator.ReconcileMetrics using Prometheus counters, gauges, and histograms. It also exposes VM lifecycle gauges that are updated each reconcile cycle.

func NewPrometheusMetrics

func NewPrometheusMetrics(reg prometheus.Registerer) *PrometheusMetrics

NewPrometheusMetrics creates and registers all orchestrator metrics on the given registry. Pass prometheus.DefaultRegisterer for the global registry, or a custom one for tests.

func (*PrometheusMetrics) ReconcileCompleted

func (m *PrometheusMetrics) ReconcileCompleted(s orchestrator.ReconcileSummary)

ReconcileCompleted implements the orchestrator.ReconcileMetrics interface. Called at the end of each reconcile cycle with a summary of what happened.

Jump to

Keyboard shortcuts

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