metrics

package
v0.32.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ReconcileTotal counts reconcile calls per controller and result (success/error).
	ReconcileTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "security_operator_reconcile_total",
			Help: "Total number of reconcile calls by controller and result.",
		},
		[]string{"controller", "result"},
	)

	// ReconcileDuration observes how long each reconcile loop takes, labelled by controller.
	ReconcileDuration = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Name:    "security_operator_reconcile_duration_seconds",
			Help:    "Duration of reconcile calls in seconds by controller.",
			Buckets: prometheus.DefBuckets,
		},
		[]string{"controller"},
	)

	// FGAOperations counts OpenFGA tuple operations by operation (apply/delete/list) and result.
	FGAOperations = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "security_operator_fga_operations_total",
			Help: "Total number of OpenFGA tuple operations by operation and result.",
		},
		[]string{"operation", "result"},
	)
)

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