From e6d96bb0bd1c9494cba0b9eb8f8edc5ed4e51e9f Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 14 Jul 2020 20:32:47 +0300 Subject: [PATCH] docs/vmagent.md: make filtering rules for init container pods less confusing --- app/vmagent/README.md | 4 ++-- docs/vmagent.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/vmagent/README.md b/app/vmagent/README.md index 151cb22074..c88b6ef156 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -236,9 +236,9 @@ either via `vmagent` itself or via Prometheus, so the exported metrics could be The following relabeling rule may be added to `relabel_configs` section in order to filter out init container pods: ```yml - - action: keep + - action: drop source_labels: [__meta_kubernetes_pod_container_init] - regex: false + regex: true ``` diff --git a/docs/vmagent.md b/docs/vmagent.md index 151cb22074..c88b6ef156 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -236,9 +236,9 @@ either via `vmagent` itself or via Prometheus, so the exported metrics could be The following relabeling rule may be added to `relabel_configs` section in order to filter out init container pods: ```yml - - action: keep + - action: drop source_labels: [__meta_kubernetes_pod_container_init] - regex: false + regex: true ```