LibreChat/helm/librechat-exporter/templates/service_monitor.yaml
Christian Troelsen 28472572c5 add helm support for metrics exporter
change

fix

a few more changes

try a fix

more fixes

add replica count

more fixes

remove some stuff

more changes

more changes

change

change

more fixes

add helm support for metrics exporter

try a fix
2025-12-11 11:00:15 +00:00

21 lines
No EOL
621 B
YAML

{{- if .Values.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "librechat-exporter.fullname" . }}
labels:
{{- include "librechat-exporter.labels" . | nindent 4 }}
{{- with .Values.serviceMonitor.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- interval: {{ .Values.serviceMonitor.interval }}
path: /metrics
port: http
scheme: http
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
selector:
matchLabels:
{{- include "librechat-exporter.selectorLabels" . | nindent 6 }}
{{- end }}