Skip to content

Commit

Permalink
Add commented metric_relabel_configs example for kubernetes-nodes-cad…
Browse files Browse the repository at this point in the history
…visor job (#2947)

Signed-off-by: Antanas Norkus <[email protected]>

Signed-off-by: Antanas Norkus <[email protected]>
Co-authored-by: Antanas Norkus <[email protected]>
  • Loading branch information
anorkus and anorkus authored Jan 25, 2023
1 parent a736065 commit 4e4e1ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
6 changes: 6 additions & 0 deletions charts/prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e4e1ca

Please sign in to comment.