mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-11 16:13:10 -06:00
Fix prometheus servicemonitor and rules handling.
Labels are not required but needed due to the current notation. This changes the labelling inclusion to use a syntax that works, also when the user does not set additional labels. Signed-off-by: Omar Pakker <Omar007@users.noreply.github.com>
This commit is contained in:
parent
2d26873d89
commit
b86a049e38
|
|
@ -6,7 +6,9 @@ metadata:
|
|||
name: {{ include "dendrite.fullname" . }}
|
||||
labels:
|
||||
{{- include "dendrite.labels" . | nindent 4 }}
|
||||
{{- toYaml .Values.prometheus.rules.labels | nindent 4 }}
|
||||
{{- with .Values.prometheus.rules.labels }}
|
||||
{{- . | toYaml | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
groups:
|
||||
{{- if .Values.prometheus.rules.additionalRules }}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,9 @@ metadata:
|
|||
name: {{ include "dendrite.fullname" . }}
|
||||
labels:
|
||||
{{- include "dendrite.labels" . | nindent 4 }}
|
||||
{{- toYaml .Values.prometheus.servicemonitor.labels | nindent 4 }}
|
||||
{{- with .Values.prometheus.servicemonitor.labels }}
|
||||
{{- . | toYaml | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
endpoints:
|
||||
- port: http
|
||||
|
|
|
|||
Loading…
Reference in a new issue