Vault Prometheus metrics vault.core.leadership*

Hi,

I am having 3 node vault cluster. i would like to setup an alert if the active node changes.

I can’t able to see the below metrics. Could you please suggest if i am missing something.
vault.core.leadership_setup_failed
vault.core.leadership_lost.

This isn’t an answer to your question but the premise. Why do you care if the leader changes?

I don’t know about Prometheus, but with http check, against each node, you can get the leader vs standby using /v1/sys/health (passing ?standbyok=200 for standby checks).