Update sample request (#7431)

- Format curl command to be similar to other sample requests
- Add single quotes to URL for '?' so that example is functional
- Delete trailing space
This commit is contained in:
Brian Shumate 2019-09-25 16:32:42 -04:00 committed by Jim Kalafut
parent 88da7ecd82
commit 54a45db46d
1 changed files with 5 additions and 3 deletions

View File

@ -30,8 +30,9 @@ model for metrics collection.
### Sample Request ### Sample Request
``` ```
$ curl -H "X-Vault-Token: f3b09679-3001-009d-2b80-9c306ab81aa6" \ $ curl \
http://127.0.0.1:8200/v1/sys/metrics?format=prometheus --header "X-Vault-Token: ..." \
'http://127.0.0.1:8200/v1/sys/metrics?format=prometheus'
``` ```
### Sample Response ### Sample Response
@ -66,4 +67,5 @@ vault_barrier_get{quantile="0.9"} 0.011938000097870827
vault_barrier_get{quantile="0.99"} 0.011938000097870827 vault_barrier_get{quantile="0.99"} 0.011938000097870827
vault_barrier_get_sum 0.1814980012131855 vault_barrier_get_sum 0.1814980012131855
vault_barrier_get_count 36 vault_barrier_get_count 36
...
``` ```