"unsupported path" for /sys/metrics API

Hello,

I’m trying to retrieve Vault metrics through /v1/sys/metrics API as described in [1] but getting “unsupported path” error. Any thoughts?

# curl -v -H "X-Vault-Token: ..." 'http://127.0.0.1:8200/v1/sys/metrics'

> GET /v1/sys/metrics HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 127.0.0.1:8200
> Accept: */*
> X-Vault-Token: ...
> 
< HTTP/1.1 404 Not Found
< Cache-Control: no-store
< Content-Type: application/json
< Date: Tue, 07 Jan 2020 23:08:14 GMT
< Content-Length: 59
< 
{"errors":["1 error occurred:\n\t* unsupported path\n\n"]}

[1] https://www.vaultproject.io/api/system/metrics.html

EDIT:

Checked that the /sys/metrics endpoint is documented starting in version v1.1.1 and I’m using version 1.0.2.

1 Like