[bitnami/influxdb] Add possibility to specify labels for ServiceMonitor (#17325)

Signed-off-by: Stian Toften <stiantoften@gmail.com>
Co-authored-by: Stian Toften <stian.toften@nhn.no>
This commit is contained in:
Stian Toften
2023-06-26 08:48:38 +02:00
committed by GitHub
parent a78bc270df
commit 825360fa2e
3 changed files with 5 additions and 1 deletions

View File

@@ -23,4 +23,4 @@ maintainers:
name: influxdb
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/influxdb
version: 5.6.2
version: 5.7.0

View File

@@ -236,6 +236,7 @@ The command removes all the Kubernetes components associated with the chart and
| `metrics.serviceMonitor.scrapeTimeout` | Timeout after which the scrape is ended | `""` |
| `metrics.serviceMonitor.relabelings` | RelabelConfigs to apply to samples before scraping | `[]` |
| `metrics.serviceMonitor.metricRelabelings` | MetricRelabelConfigs to apply to samples before ingestion | `[]` |
| `metrics.serviceMonitor.labels` | Additional labels that can be used so ServiceMonitor will be discovered by Prometheus | `{}` |
| `metrics.serviceMonitor.selector` | Prometheus instance selector labels | `{}` |
| `metrics.serviceMonitor.honorLabels` | honorLabels chooses the metric's labels on collisions with target labels | `false` |
| `networkPolicy.enabled` | Enable NetworkPolicy | `false` |

View File

@@ -12,6 +12,9 @@ metadata:
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.metrics.serviceMonitor.labels }}
{{- include "common.tplvalues.render" (dict "value" .Values.metrics.serviceMonitor.labels "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
{{- end }}