-
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
Missing core leadership metrics #11732
Comments
Any word on this? |
I just tested and I still have the same metrics missing in |
@agaudreault-jive Just wanted to confirm that this happens after just starting up a cluster correct? As in we're not asking the nodes to do any actions after it's been spun up? |
In relation to the metrics :
These metrics only get logged when there's a change in leadership. For example, an action like If we are trying to make the current node the leader node but there is a failure, or it remains sealed, then metrics such as "leadership_setup_failed" and "leadership_lost" would also be logged. If there is no error in attempting to switch leadership, these metrics will not be logged. In relation to the other metrics:
These metrics should be logged regardless of whether autounseal is used. However, it's possible that the telemetry metrics aren't being retained for long enough. Try changing the prometheus_retention_time configuration in the telemetry stanza to a larger value (maybe 5m) - this will probably show the results. |
This comment should help resolve the issue! We'll close the issue out after some time with no response from you. Please feel free to re-open! |
Describe the bug
Some documented metrics from https://www.vaultproject.io/docs/internals/telemetry seems to be missing from Vault. Since these metrics are missing, it is impossible in some alerting tools to build the recommended alerts.
vault.core.leadership_setup_failed
vault.core.leadership_lost
vault.core.step_down
To Reproduce
Steps to reproduce the behavior:
curl -H "X-Vault-Request: true" -H "X-Vault-Token: $(vault print token)" -H "X-Vault-No-Request-Forwarding: true" $VAULT_ADDR/v1/sys/metrics\?format=prometheus
(Run until you reach the HA active node and get some result)vault_core_leadership_lost
and other metricsExpected behavior
Metrics should be present.
Environment:
vault status
): 1.6.3HA Enabled true
Additional context
I also notice missing metrics on the seal operations that might be caused because we use
awskms
auto-unseal.vault.core.post_unseal
vault.core.pre_seal
vault.core.seal-with-request
vault.core.seal
vault.core.seal-internal
vault.core.unseal
I don't know if it is a bug or missing configurations. I can provide more information if necessary.
The text was updated successfully, but these errors were encountered: