Closed jaloren closed 4 years ago
The Error is because the CLI expects JSON to be returned, but the format requested is Prometheus specific.
You could use cURL for example to get the Prometheus metrics:
curl --header "X-Vault-Token: ..." '.../v1/sys/metrics?format=prometheus'
I'd like to know more about your use case tho, what do you expect the command you posted should return.
vault read -format=json sys/metrics format="prometheus"
JSON encoded Prometheus metrics like this library [prometheus/prom2json] would do?
We haven't heard back regarding this issue in over 16 days. To try and keep our GitHub issues current, we'll be closing this issue in approximately seven days if we do not hear back regarding this issue. Please let us know if you can still reproduce this issue, and if there is any more information you could share, otherwise we'll be closing this issue.
Closing for now. Let us know if you have any more information!
Describe the bug
According to the CLI help, i should be able to get the vault prom metrics from prometheus
However, the vault cli returns an error.
To Reproduce
Expected behavior That prometheus metrics should be returned.
Environment:
vault server version
vault status
):vault version
):