From 234321633182183a46b38ef7491bc36ae49b3598 Mon Sep 17 00:00:00 2001 From: Sheldon Jackson <5133739+Imshelledin21@users.noreply.github.com> Date: Tue, 3 Sep 2024 20:41:31 -0500 Subject: [PATCH] Added drop discovery.relabel "only_http_metrics" rule to not scrape the memberlist port --- charts/meta-monitoring/templates/agent/config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/charts/meta-monitoring/templates/agent/config.yaml b/charts/meta-monitoring/templates/agent/config.yaml index 36c111d..998a4e3 100644 --- a/charts/meta-monitoring/templates/agent/config.yaml +++ b/charts/meta-monitoring/templates/agent/config.yaml @@ -124,6 +124,11 @@ data: action = "drop" regex = "9095" } + rule { + source_labels = ["__meta_kubernetes_pod_container_port_number"] + action = "drop" + regex = "7946" + } } prometheus.scrape "pods" {