-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
metrics: secrets engines should be in labels, not metric names (prometheus) #9068
Comments
Any progress on the merge request? or a workaround with metric_relabel_configs? |
Ditto - experiencing as well. A solution is still sought for and any response indicating that it shall be forthcoming would be well appreciated... current matrices naming are not very practical nor do they comply to common standards with most other systems. |
This does the job:
|
@lrstanley - does the solution from @azelezni suffice - and if so perhaps we can get it documented on a related PR and thereafter close this request. WDYT? |
As described in the initial issue body, I don't think it's sufficient.
Requiring users to utilize relabel configs would also only solve one of the issues, the other being:
In short, the current metrics implementation with Vault (for Prometheus metrics at least), doesn't follow any standards/best practices and should be revisited. |
@lrstanley I'm curious if you have a suggestion that you may be able to share via a linked PR on how it could be better? Any correction here would naturally be a disruptive change to existing Prom consumers but I suspect if a proposed solution is already in place and tested (maybe with some later feature flag to enable) then the community would get ample time to benefit from standard / best practises. |
Most of this is covered in the issue description. I don't have bandwidth at the moment to look at creating a PR. |
Hi folks! Is this still an issue in newer versions of Vault? Please let me know so I can bubble it up accordingly. Thanks! |
@hsimon-hashicorp yes, I mentioned two PRs above that would fix this |
Is your feature request related to a problem? Please describe.
Prometheus metrics are output with the following format today (snippet pulled from live cluster):
Couple of issues:
> 0
in all queries that default to NaN. These should default to 0, as it's natively supported in Prometheus to support counter resets (i.e. cluster restarts).__name__=~"vault_route_read_.+"
label queries. However, this does not work in many situations (e.g.increase()
queries). Using__name__
is also heavily discouraged:Describe the solution you'd like
With the Go libraries for Prometheus, this should actually be easier to implement than what is currently implemented, I suspect.
Describe alternatives you've considered
The only way of getting around this, is to implement
metric_relabel_configs
definitions on the Prometheus cluster. This would have to be done for each "type" of metric being output by the Vault cluster. This is an anti-pattern though, and shouldn't be necessary.I'd submit a PR for these things but I simply don't have the time at the moment.
The text was updated successfully, but these errors were encountered: