vault-secrets-operator icon indicating copy to clipboard operation
vault-secrets-operator copied to clipboard

Add a metric to count the number of rollout restarts

Open mnacharov opened this issue 6 months ago • 0 comments

Is your feature request related to a problem? Please describe. To monitor and alert on conditions like the recent https://github.com/hashicorp/vault-secrets-operator/pull/1126, it would be great to count each restart.

Describe the solution you'd like Add a metric such as vso_rollout_restarts_total and count for each target, like that:

vso_rollout_restarts_total{namespace="default", name="my-secret", target_name="my-workload", target_kind="Deployment"} 1

Describe alternatives you've considered I haven't found any metric which showed such statistics. Sure, I have kube-state-metrics, which shows this anomaly, but this way I could find the reason faster.

Additional context

mnacharov avatar Sep 30 '25 15:09 mnacharov