From 4e4e1ca2816529963987bfbd5150adfe3b8fb0a8 Mon Sep 17 00:00:00 2001 From: Antanas Norkus Date: Wed, 25 Jan 2023 10:12:17 +0200 Subject: [PATCH] Add commented metric_relabel_configs example for kubernetes-nodes-cadvisor job (#2947) Signed-off-by: Antanas Norkus Signed-off-by: Antanas Norkus Co-authored-by: Antanas Norkus --- charts/prometheus/Chart.yaml | 2 +- charts/prometheus/values.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/prometheus/Chart.yaml b/charts/prometheus/Chart.yaml index b789e988e7ec..a3d6aa66c6b3 100644 --- a/charts/prometheus/Chart.yaml +++ b/charts/prometheus/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: prometheus appVersion: v2.41.0 -version: 19.3.1 +version: 19.3.2 kubeVersion: ">=1.16.0-0" description: Prometheus is a monitoring system and time series database. home: https://prometheus.io/ diff --git a/charts/prometheus/values.yaml b/charts/prometheus/values.yaml index 54b6dd198e92..50176f7e9345 100644 --- a/charts/prometheus/values.yaml +++ b/charts/prometheus/values.yaml @@ -751,6 +751,12 @@ serverFiles: target_label: __metrics_path__ replacement: /api/v1/nodes/$1/proxy/metrics/cadvisor + # Metric relabel configs to apply to samples before ingestion. + # [Metric Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs) + # metric_relabel_configs: + # - action: labeldrop + # regex: (kubernetes_io_hostname|failure_domain_beta_kubernetes_io_region|beta_kubernetes_io_os|beta_kubernetes_io_arch|beta_kubernetes_io_instance_type|failure_domain_beta_kubernetes_io_zone) + # Scrape config for service endpoints. # # The relabeling allows the actual service scrape endpoint to be configured