hashicorp / vault-secrets-operator

The Vault Secrets Operator (VSO) allows Pods to consume Vault secrets natively from Kubernetes Secrets.
https://hashicorp.com
Other
471 stars 102 forks source link

VaultStaticSecrets metrics not available #922

Open alexthaii opened 2 months ago

alexthaii commented 2 months ago

Describe the bug I'd like to know the status of my VaultStaticSecrets but I'm not clear whether or not this is possible through the /metrics endpoint.

Looking at the controller_resource_status metric being exposed, the only Controllers reporting are vaultauth and vaultconnection.

image

However, it seems the source code shows a few other Controllers and is missing others (e.g. VaultStaticSecret) https://github.com/search?q=repo%3Ahashicorp/vault-secrets-operator%20SetResourceStatus&type=code

To Reproduce Steps to reproduce the behavior:

  1. Deploy VSO and enable telemetry
  2. Deploy kube-prometheus-stack
  3. Look at metrics exposed via Prometheus or Grafana and see the absence of controllers such as VaultStaticSecret

Expected behavior I hope to see the current statuses of my VaultStaticSecret resources

Environment