diff options
| author | Your Name <you@example.com> | 2026-04-26 21:02:47 +0800 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-04-26 21:02:47 +0800 |
| commit | d3e770254de0bb301815ca87257c8b1a357d06c4 (patch) | |
| tree | 358c814be2a06b9e2009905f14938243286b8d82 /charts/llm-app/templates/servicemonitor.yaml | |
Diffstat (limited to 'charts/llm-app/templates/servicemonitor.yaml')
| -rw-r--r-- | charts/llm-app/templates/servicemonitor.yaml | 19 |
1 files changed, 19 insertions, 0 deletions
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 @@ | |||
| 1 | {{- if .Values.monitoring.serviceMonitor.enabled -}} | ||
| 2 | apiVersion: monitoring.coreos.com/v1 | ||
| 3 | kind: ServiceMonitor | ||
| 4 | metadata: | ||
| 5 | name: {{ include "llm-app.fullname" . }} | ||
| 6 | {{- with .Values.monitoring.serviceMonitor.labels }} | ||
| 7 | labels: {{- toYaml . | nindent 4 }} | ||
| 8 | {{- end }} | ||
| 9 | spec: | ||
| 10 | selector: | ||
| 11 | matchLabels: {{- include "llm-app.selectorLabels" . | nindent 6 }} | ||
| 12 | endpoints: | ||
| 13 | - port: http | ||
| 14 | path: /metrics | ||
| 15 | interval: {{ .Values.monitoring.serviceMonitor.interval }} | ||
| 16 | namespaceSelector: | ||
| 17 | matchNames: | ||
| 18 | - {{ .Release.Namespace }} | ||
| 19 | {{- end }} | ||
