mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Add parameter additionalLabels to serviceMonitor template (#21450)
Signed-off-by: Maria.Kotlyarevskaya <maria.kotlyarevskaya@nordigy.ru> Co-authored-by: Maria.Kotlyarevskaya <maria.kotlyarevskaya@nordigy.ru>
This commit is contained in:
co-authored by
Maria.Kotlyarevskaya
parent
858d2c154d
commit
346ea3c573
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: cassandra
|
||||
version: 0.14.2
|
||||
version: 0.14.3
|
||||
appVersion: 3.11.5
|
||||
description: Apache Cassandra is a free and open-source distributed database management
|
||||
system designed to handle large amounts of data across many commodity servers, providing
|
||||
|
||||
@@ -158,7 +158,8 @@ The following table lists the configurable parameters of the Cassandra chart and
|
||||
| `backup.destination` | Destination to store backup artifacts | `s3://bucket/cassandra` |
|
||||
| `backup.google.serviceAccountSecret` | Secret containing credentials if GCS is used as destination | |
|
||||
| `exporter.enabled` | Enable Cassandra exporter | `false` |
|
||||
| `exporter.servicemonitor` | Enable ServiceMonitor for exporter | `true` |
|
||||
| `exporter.servicemonitor` | Enable ServiceMonitor for exporter | `true` |
|
||||
| `exporter.additionalLabels` | Additional labels for Service Monitor | `{}` |
|
||||
| `exporter.image.repo` | Exporter image repository | `criteord/cassandra_exporter` |
|
||||
| `exporter.image.tag` | Exporter image tag | `2.0.2` |
|
||||
| `exporter.port` | Exporter port | `5556` |
|
||||
|
||||
@@ -9,6 +9,9 @@ metadata:
|
||||
chart: {{ template "cassandra.chart" . }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- if .Values.metrics.serviceMonitor.additionalLabels }}
|
||||
{{ toYaml .Values.metrics.serviceMonitor.additionalLabels | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
jobLabel: {{ template "cassandra.name" . }}
|
||||
endpoints:
|
||||
|
||||
@@ -215,6 +215,8 @@ exporter:
|
||||
# If exporter is enabled this will create a ServiceMonitor by default as well
|
||||
servicemonitor: true
|
||||
enabled: false
|
||||
additionalLabels: {}
|
||||
# prometheus: default
|
||||
image:
|
||||
repo: criteord/cassandra_exporter
|
||||
tag: 2.0.2
|
||||
|
||||
Reference in New Issue
Block a user