From d3e770254de0bb301815ca87257c8b1a357d06c4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 26 Apr 2026 21:02:47 +0800 Subject: hehe --- charts/llm-app/templates/servicemonitor.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 charts/llm-app/templates/servicemonitor.yaml (limited to 'charts/llm-app/templates/servicemonitor.yaml') diff --git a/charts/llm-app/templates/servicemonitor.yaml b/charts/llm-app/templates/servicemonitor.yaml new file mode 100644 index 0000000..264e766 --- /dev/null +++ b/charts/llm-app/templates/servicemonitor.yaml @@ -0,0 +1,19 @@ +{{- if .Values.monitoring.serviceMonitor.enabled -}} +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: {{ include "llm-app.fullname" . }} + {{- with .Values.monitoring.serviceMonitor.labels }} + labels: {{- toYaml . | nindent 4 }} + {{- end }} +spec: + selector: + matchLabels: {{- include "llm-app.selectorLabels" . | nindent 6 }} + endpoints: + - port: http + path: /metrics + interval: {{ .Values.monitoring.serviceMonitor.interval }} + namespaceSelector: + matchNames: + - {{ .Release.Namespace }} +{{- end }} -- cgit