[stable/elasticsearch-exporter] Add options to set relabel configuration for metrics (#21636)

* Add options to set relabel configuration for metrics

Signed-off-by: ricoberger <mail@ricoberger.de>

* Use consistent indentation

Signed-off-by: ricoberger <mail@ricoberger.de>
This commit is contained in:
Rico Berger
2020-05-04 06:14:26 -07:00
committed by GitHub
parent c7f3a08409
commit e76ba352ed
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Elasticsearch stats exporter for Prometheus
name: elasticsearch-exporter
version: 3.2.0
version: 3.3.0
kubeVersion: ">=1.10.0-0"
appVersion: 1.1.0
home: https://github.com/justwatchcom/elasticsearch_exporter
+1
View File
@@ -100,6 +100,7 @@ Parameter | Description | Default
`serviceMonitor.interval` | Interval at which metrics should be scraped | `10s`
`serviceMonitor.scrapeTimeout` | Timeout after which the scrape is ended | `10s`
`serviceMonitor.scheme` | Scheme to use for scraping | `http`
`serviceMonitor.relabelings` | Relabel configuration for the metrics | `[]`
`prometheusRule.enabled` | If true, a PrometheusRule CRD is created for a prometheus operator | `false`
`prometheusRule.namespace` | If set, the PrometheusRule will be installed in a different namespace | `""`
`prometheusRule.labels` | Labels for prometheus operator | `{}`
@@ -25,6 +25,10 @@ spec:
port: {{ .Values.service.metricsPort.name }}
path: {{ .Values.web.path }}
scheme: {{ .Values.serviceMonitor.scheme }}
{{- if .Values.serviceMonitor.relabelings }}
relabelings:
{{- toYaml .Values.serviceMonitor.relabelings | nindent 4 }}
{{- end }}
jobLabel: "{{ .Release.Name }}"
selector:
matchLabels:
@@ -166,6 +166,7 @@ serviceMonitor:
interval: 10s
scrapeTimeout: 10s
scheme: http
relabelings: []
prometheusRule:
## If true, a PrometheusRule CRD is created for a prometheus operator