Document how to exclude kubernetes annotation

This commit is contained in:
Daniel Nelson 2017-09-29 14:07:19 -07:00
parent 742eafce33
commit b0b1e43f92
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 When using the `"ENV"` endpoint, the connection is configured using the
[cli Docker environment variables](https://godoc.org/github.com/moby/moby/client#NewEnvClient). [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: ### Measurements & Fields:
Every effort was made to preserve the names based on the JSON response from the Every effort was made to preserve the names based on the JSON response from the