Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

total error prometheus metric #175

Open
YR-ZR0 opened this issue Sep 5, 2023 · 0 comments
Open

total error prometheus metric #175

YR-ZR0 opened this issue Sep 5, 2023 · 0 comments

Comments

@YR-ZR0
Copy link

YR-ZR0 commented Sep 5, 2023

Summary

I would like a Prometheus metric that exposes total healthy and unhealthy metrics for onepassword items.

Use cases

The use case i see for this is mostly around monitoring and alerting. it is general practice in Kubernetes to monitor your cluster using Prometheus and to alert on specific metrics. i see this feature request as a way to pick up when secrets have not correctly been applied and alerting that to an SRE team or a DevOps team.

Proposed solution

A proposed solution would be to extend the Prometheus metrics to include a healthy and unhealthy metric point. please refer to the prior work as sealed secrets by bitnami has a similar metric which i believe pulls the status fields of the secret CRD to infer if a secret has been decrypted or not.

References & Prior Work

This is how sealed secrets exposes the error metric:
https://github.com/bitnami-labs/sealed-secrets/blob/main/pkg/controller/metrics.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant