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.
Click to show internal directories.
Click to hide internal directories.