From b0b1e43f929953a5c318d80f6c7d2b215cc0cea8 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Fri, 29 Sep 2017 14:07:19 -0700 Subject: [PATCH] Document how to exclude kubernetes annotation --- plugins/inputs/docker/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/inputs/docker/README.md b/plugins/inputs/docker/README.md index b482ef3fb..158ed7bcc 100644 --- a/plugins/inputs/docker/README.md +++ b/plugins/inputs/docker/README.md @@ -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