From 7fc2f018838e904a0448d67ac252d8842facc86e Mon Sep 17 00:00:00 2001 From: Marsel Novy Date: Wed, 24 Jan 2024 08:29:12 +0200 Subject: [PATCH] fix: target down in Prometheus (#5493) Co-authored-by: Jonathan Innis --- .../getting-started-with-karpenter/prometheus-values.yaml | 6 ++++-- .../getting-started-with-karpenter/prometheus-values.yaml | 6 ++++-- .../getting-started-with-karpenter/prometheus-values.yaml | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/website/content/en/docs/getting-started/getting-started-with-karpenter/prometheus-values.yaml b/website/content/en/docs/getting-started/getting-started-with-karpenter/prometheus-values.yaml index f7c34fd90dea..aff5a65944c1 100644 --- a/website/content/en/docs/getting-started/getting-started-with-karpenter/prometheus-values.yaml +++ b/website/content/en/docs/getting-started/getting-started-with-karpenter/prometheus-values.yaml @@ -15,6 +15,8 @@ extraScrapeConfigs: | names: - kube-system relabel_configs: - - source_labels: [__meta_kubernetes_endpoint_port_name] - regex: http-metrics + - source_labels: + - __meta_kubernetes_endpoints_name + - __meta_kubernetes_endpoint_port_name action: keep + regex: karpenter;http-metrics diff --git a/website/content/en/preview/getting-started/getting-started-with-karpenter/prometheus-values.yaml b/website/content/en/preview/getting-started/getting-started-with-karpenter/prometheus-values.yaml index f7c34fd90dea..aff5a65944c1 100644 --- a/website/content/en/preview/getting-started/getting-started-with-karpenter/prometheus-values.yaml +++ b/website/content/en/preview/getting-started/getting-started-with-karpenter/prometheus-values.yaml @@ -15,6 +15,8 @@ extraScrapeConfigs: | names: - kube-system relabel_configs: - - source_labels: [__meta_kubernetes_endpoint_port_name] - regex: http-metrics + - source_labels: + - __meta_kubernetes_endpoints_name + - __meta_kubernetes_endpoint_port_name action: keep + regex: karpenter;http-metrics diff --git a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/prometheus-values.yaml b/website/content/en/v0.33/getting-started/getting-started-with-karpenter/prometheus-values.yaml index f7c34fd90dea..aff5a65944c1 100644 --- a/website/content/en/v0.33/getting-started/getting-started-with-karpenter/prometheus-values.yaml +++ b/website/content/en/v0.33/getting-started/getting-started-with-karpenter/prometheus-values.yaml @@ -15,6 +15,8 @@ extraScrapeConfigs: | names: - kube-system relabel_configs: - - source_labels: [__meta_kubernetes_endpoint_port_name] - regex: http-metrics + - source_labels: + - __meta_kubernetes_endpoints_name + - __meta_kubernetes_endpoint_port_name action: keep + regex: karpenter;http-metrics