metrics

package
v0.0.0-...-8340aad Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RemoteSecretConditionGauge = prometheus.NewGaugeVec(
	prometheus.GaugeOpts{
		Namespace: config.MetricsNamespace,
		Subsystem: config.MetricsSubsystem,
		Name:      "status_condition",
		Help:      "The status condition of a specific RemoteSecret",
	},
	[]string{"name", "namespace", "condition", "status"},
)
View Source
var StorageAvailabilityGauge = prometheus.NewGauge(
	prometheus.GaugeOpts{
		Namespace: config.MetricsNamespace,
		Subsystem: config.MetricsSubsystem,
		Name:      "secretstorage_system_available",
		Help:      "The availability of the remote secret system",
	})
View Source
var UploadRejectionsCounter = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Namespace: config.MetricsNamespace,
		Subsystem: config.MetricsSubsystem,
		Name:      "data_upload_rejected_total",
		Help:      "The number of remote secret uploads rejected by the webhook or controller",
	},
	[]string{"operation", "reason"},
)

Functions

func DeleteRemoteSecretCondition

func DeleteRemoteSecretCondition(ctx context.Context, name, namespace string)

func RegisterCommonMetrics

func RegisterCommonMetrics(registerer prometheus.Registerer) error

func UpdateRemoteSecretConditionMetric

func UpdateRemoteSecretConditionMetric(ctx context.Context, rs *api.RemoteSecret, condition *metav1.Condition, value float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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