-
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
Vault telemetry double counting route metrics #12060
Comments
My hypothesis is that this only affects writes and is due to the ExistenceCheck (used to classify writes as "create" or "update") is triggering the extra counter increment since it leverages the |
Hi folks! Any issue with a |
@hsimon-hashicorp I would like to signup for this issue. |
@vinayak03 Please feel free to create a pull request! We're here for help with questions on implementation or things you're stuck with, too. Thanks! :) |
@hsimon-hashicorp I have created a pull request, I have tested the issue on my local environment, however I was not able to add unit test for this. Let me know if there is any other way I can add test for this issue. |
Describe the bug
A single read/write or get/put to a Vault secret results in the telemetry metric count incrementing by 2, instead of 1.
To Reproduce
Steps to reproduce the behavior:
vault_route_update_transit__count
, ie, it is 2vault write -tls-skip-verify transit/encrypt/key01 plaintext=$(base64 <<< "encrypt stuff")
vault_route_update_transit__count
, now it is 4Expected behavior
A single operation, such as a transit encrypt operation, would be counted as 1
Environment:
vault status
): 1.7.3+ent, but also seen in 1.6.xvault version
): Vault v1.7.3 (5d517c8)Vault server configuration file(s):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: