Document how to exclude kubernetes annotation

This commit is contained in:
Daniel Nelson 2017-09-29 14:07:19 -07:00
parent f2cb1da7cf
commit ad4a5aa7a0
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,15 @@ to gather stats from the [Engine API](https://docs.docker.com/engine/api/v1.20/)
When using the `"ENV"` endpoint, the connection is configured using the
[cli Docker environment variables](https://godoc.org/github.com/moby/moby/client#NewEnvClient).
#### Kubernetes Labels
Kubernetes may add many labels to your containers, if they are not needed you
may prefer to exclude them:
```
docker_label_exclude = ["annotation.kubernetes*"]
```
### Measurements & Fields:
Every effort was made to preserve the names based on the JSON response from the