[bitnami/node-exporter] Add the ability to specify the ServiceMonitor relabelings (#2222)

* [bitnami/node-exporter] Add the ability to specify the ServiceMonitor relabelings

This allows the user to apply pre-scraping relabeling

* [bitnami/node-exporter] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Adrian Astley <adrian.astley@activision.com>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
RichieSams
2020-04-06 07:40:16 -07:00
committed by GitHub
parent 8d676ab287
commit edfe72b1f0
4 changed files with 12 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.18.1
description: Prometheus exporter for hardware and OS metrics exposed by UNIX kernels, with pluggable metric collectors.
name: node-exporter
version: 0.2.8
version: 0.2.9
keywords:
- prometheus
- node-exporter

View File

@@ -110,6 +110,7 @@ The following table lists the configurable parameters of the Node Exporter chart
| `serviceMonitor.interval` | Scrape interval (use by default, falling back to Prometheus' default) | `nil` |
| `serviceMonitor.jobLabel` | The name of the label on the target service to use as the job name in prometheus. | `nil` |
| `serviceMonitor.selector` | ServiceMonitor selector labels | `[]` |
| `serviceMonitor.relabelings` | ServiceMonitor relabelings | `[]` |
| `serviceMonitor.metricRelabelings` | ServiceMonitor metricRelabelings | `[]` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example the following command sets the `minReadySeconds` of the Node Exporter Pods to `120` seconds.

View File

@@ -24,6 +24,9 @@ spec:
{{- if .Values.serviceMonitor.scrapeTimeout }}
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
{{- end }}
{{- if .Values.serviceMonitor.relabelings }}
relabelings: {{- include "node-exporter.tplValue" ( dict "value" .Values.serviceMonitor.relabelings "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.serviceMonitor.metricRelabelings }}
metricRelabelings: {{- include "node-exporter.tplValue" ( dict "value" .Values.serviceMonitor.metricRelabelings "context" $) | nindent 8 }}
{{- end }}

View File

@@ -50,7 +50,7 @@ serviceAccount:
image:
registry: docker.io
repository: bitnami/node-exporter
tag: 0.18.1-debian-10-r56
tag: 0.18.1-debian-10-r74
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
@@ -222,7 +222,12 @@ serviceMonitor:
# selector:
# prometheus: my-prometheus
## Metric relabeling
## RelabelConfigs to apply to samples before scraping
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
##
# relabelings: []
## MetricRelabelConfigs to apply to samples before ingestion
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
##
# metricRelabelings: []