From 3adc41046a14fa8129e7bc75fba4b89efeaf8a59 Mon Sep 17 00:00:00 2001 From: Mike McKiernan Date: Mon, 15 Apr 2024 09:59:27 -0400 Subject: [PATCH] Exclude NFD master from metrics Addresses https://github.com/NVIDIA/cloud-native-docs/issues/1. Signed-off-by: Mike McKiernan --- gpu-telemetry/kube-prometheus.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gpu-telemetry/kube-prometheus.rst b/gpu-telemetry/kube-prometheus.rst index b96a11395..b1719452d 100644 --- a/gpu-telemetry/kube-prometheus.rst +++ b/gpu-telemetry/kube-prometheus.rst @@ -6,7 +6,7 @@ Setting up Prometheus ##################### .. contents:: - :depth: 5 + :depth: 2 :local: :backlinks: none @@ -111,6 +111,9 @@ Add the following ``configMap`` to the section on ``additionalScrapeConfigs`` in names: - gpu-operator relabel_configs: + - source_labels: [__meta_kubernetes_endpoints_name] + action: drop + regex: .*-node-feature-discovery-master - source_labels: [__meta_kubernetes_pod_node_name] action: replace target_label: kubernetes_node