Skip to content
Snippets Groups Projects
Verified Commit 4179f640 authored by Vincent Sellier's avatar Vincent Sellier
Browse files

rancher/monitoring: configure node-exporter to store node name instead of the...

rancher/monitoring: configure node-exporter to store node name instead of the ip for the instance label

Rancher use an modified version of the prometheus-stack helm chart
so the configuration is a little different than the official
helm chart

Related to infra/sysadm-environment#4705
parent 0350a4d5
No related branches found
No related tags found
No related merge requests found
......@@ -203,6 +203,16 @@ resource "rancher2_app_v2" "cluster-admin-rancher-monitoring" {
chart_name = "rancher-monitoring"
chart_version = "100.1.3+up19.0.3"
values = <<EOF
nodeExporter:
serviceMonitor:
enabled: true
relabelings:
- action: replace
regex: ^(.*)$
replacement: $1
sourceLabels:
- __meta_kubernetes_pod_node_name
targetLabel: instance
prometheus:
enabled: true
prometheusSpec:
......
......@@ -273,6 +273,16 @@ resource "rancher2_app_v2" "archive-production-rancher-monitoring" {
chart_name = "rancher-monitoring"
chart_version = "100.1.3+up19.0.3"
values = <<EOF
nodeExporter:
serviceMonitor:
enabled: true
relabelings:
- action: replace
regex: ^(.*)$
replacement: $1
sourceLabels:
- __meta_kubernetes_pod_node_name
targetLabel: instance
prometheus:
enabled: true
prometheusSpec:
......
......@@ -260,6 +260,16 @@ resource "rancher2_app_v2" "archive-staging-rancher-monitoring" {
chart_name = "rancher-monitoring"
chart_version = "100.1.3+up19.0.3"
values = <<EOF
nodeExporter:
serviceMonitor:
enabled: true
relabelings:
- action: replace
regex: ^(.*)$
replacement: $1
sourceLabels:
- __meta_kubernetes_pod_node_name
targetLabel: instance
prometheus:
enabled: true
prometheusSpec:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment