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

Vault Agent - Prometheus PushGateway support #18462

Open
zamazan4ik opened this issue Dec 19, 2022 · 0 comments
Open

Vault Agent - Prometheus PushGateway support #18462

zamazan4ik opened this issue Dec 19, 2022 · 0 comments

Comments

@zamazan4ik
Copy link

zamazan4ik commented Dec 19, 2022

Is your feature request related to a problem? Please describe.
We are using Vault Agent for retrieving secrets from Vault and rendering them into the files on a machine. Vault Agent is started during the deployment process and after the successful secret render is closed (with -exit-after-auth option).

Since Vault Agent usually is closed quickly, there is no stable way to expose metrics via Prometheus endpoint. We are interested in the metrics since based on them we could set up alerts for auth errors.

Describe the solution you'd like
I want to be able to push metrics from Vault Agent directly to Prometheus via Prometheus Pushgateway. I know that Pushgateway is not recommended way to work with metrics. But for short-lived jobs, there are no other alternatives.

Describe alternatives you've considered
I do not know a good alternative solution. The only possible solution I see is to set up scrape periodicity for Vault to some veeeery frequent value - but it's too ugly and kinda unstable.

Another option is just not to finish vault agent process and just restart it during the deployment process. Possibly, secret re-render could be done without a restart but the corresponding question is unanswered yet - https://discuss.hashicorp.com/t/manually-trigger-secret-rendering-with-vault-agent/45395 .

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

No branches or pull requests

2 participants