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 ```