Skip to content

Commit

Permalink
chore: lint jvb/metrics-prometheus.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire authored Nov 21, 2023
1 parent 6593380 commit be9aa8b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/jvb/metrics-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ metadata:
name: {{ template "jitsi-meet.jvb.fullname" . }}
labels:
{{- include "jitsi-meet.jvb.labels" . | nindent 4 }}
{{- range $key, $value := .Values.jvb.metrics.serviceMonitor.selector }}
{{ $key }}: {{ $value | quote }}
{{- with .Values.jvb.metrics.serviceMonitor.selector }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- port: tcp-metrics
path: /metrics
{{- if .Values.jvb.metrics.serviceMonitor.honorLabels }}
honorLabels: {{ .Values.jvb.metrics.serviceMonitor.honorLabels }}
{{- with .Values.jvb.metrics.serviceMonitor.honorLabels }}
honorLabels: {{ . }}
{{- end }}
{{- if .Values.jvb.metrics.serviceMonitor.interval }}
interval: {{ .Values.jvb.metrics.serviceMonitor.interval }}
{{- with .Values.jvb.metrics.serviceMonitor.interval }}
interval: {{ . }}
{{- end }}
selector:
matchLabels:
{{- include "jitsi-meet.jvb.labels" . | nindent 6 }}
{{- include "jitsi-meet.jvb.labels" . | nindent 6 }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
Expand Down

0 comments on commit be9aa8b

Please sign in to comment.