metrics

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Actions           = prometheus.NewCounterVec(prometheus.CounterOpts{Name: "change_window_executions_total", Help: "SSA attempts by phase (start/end) and result (success/error/gone)."}, []string{"phase", "result"})
	ActionDuration    = prometheus.NewHistogramVec(prometheus.HistogramOpts{Name: "change_window_execution_duration_seconds", Help: "Duration of SSA attempts, including API latency.", Buckets: prometheus.DefBuckets}, []string{"phase"})
	Admission         = prometheus.NewCounterVec(prometheus.CounterOpts{Name: "change_window_admission_requests_total", Help: "Admission responses by decision (allow/deny/error)."}, []string{"decision"})
	Warnings          = prometheus.NewCounter(prometheus.CounterOpts{Name: "change_window_admission_warnings_total", Help: "Deduplicated warning messages emitted."})
	AdmissionDuration = prometheus.NewHistogram(prometheus.HistogramOpts{Name: "change_window_admission_duration_seconds", Help: "Admission handler duration.", Buckets: []float64{.0001, .0005, .001, .005, .01, .05, .1, .5, 1}})
	Windows           = prometheus.NewCounterVec(prometheus.CounterOpts{Name: "change_window_transitions_total", Help: "Durably recorded window transitions."}, []string{"phase"})
)

Labels are finite enums, never policy/resource/namespace names or error text.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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