Add v1 to metrics API endpoint

Fixes #1399

This versions the prometheus metrics API so we can manage backwards
incompatible changes in the future more easily.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-09-20 16:24:30 -04:00
parent 9934acb271
commit f23edd3cc0
3 changed files with 11 additions and 2 deletions

View File

@@ -257,7 +257,7 @@ Waiting on things like the container's exit status and cgroup metrics are setup
If you are familiar with prometheus you can curl the containerd metrics endpoint (in the `config.toml` that we created) to see your container's metrics:
```bash
> curl 127.0.0.1:1338/metrics
> curl 127.0.0.1:1338/v1/metrics
```
Pretty cool right?