mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus-snmp-exporter] Fix serviceMonitor params (#19985)
The template for prometheus-snmp-exporter's serviceMonitor checks for `.Values.serviceMonitor.params.enabled` but then tries to insert `.Values.conf.params.conf` instead. This change was already part of PR #18389 but that was closed due to inactivity. Signed-off-by: Helge Sychla <helge.sychla@travelping.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
description: Prometheus SNMP Exporter
|
||||
name: prometheus-snmp-exporter
|
||||
version: 0.0.4
|
||||
version: 0.0.5
|
||||
appVersion: 0.14.0
|
||||
home: https://github.com/prometheus/snmp_exporter
|
||||
sources:
|
||||
|
||||
@@ -70,10 +70,13 @@ The following table lists the configurable parameters of the SNMP-Exporter chart
|
||||
| `service.type` | type of service to create | `ClusterIP` |
|
||||
| `service.port` | port for the snmp http service | `9116` |
|
||||
| `service.externalIPs` | list of external ips | [] |
|
||||
| `rbac.create` | Use Role-based Access Control | `true` |
|
||||
| `serviceAccount.create` | Should we create a ServiceAccount | `true` |
|
||||
| `serviceAccount.name` | Name of the ServiceAccount to use | `null` |
|
||||
| `rbac.create` | Use Role-based Access Control | `true` |
|
||||
| `serviceAccount.create` | Should we create a ServiceAccount | `true` |
|
||||
| `serviceAccount.name` | Name of the ServiceAccount to use | `null` |
|
||||
| `serviceMonitor.enabled` | Enables ServiceMonitor | `false` |
|
||||
| `serviceMonitor.params.enabled` | Enables params for serviceMonitor | `false` |
|
||||
| `serviceMonitor.params.conf.module` | Module to use for scrapes | `[]` |
|
||||
| `serviceMonitor.params.conf.target` | List of target(s) to scrape | `[]` |
|
||||
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||
|
||||
@@ -22,7 +22,8 @@ spec:
|
||||
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
|
||||
{{- end }}
|
||||
{{- if .Values.serviceMonitor.params.enabled }}
|
||||
{{ toYaml .Values.conf.params.conf | indent 6 }}
|
||||
params:
|
||||
{{ toYaml .Values.serviceMonitor.params.conf | indent 6 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
|
||||
Reference in New Issue
Block a user