add service monitor

This commit is contained in:
2025-01-09 16:04:24 -06:00
parent 4c617353be
commit 4d2b13e477

View File

@@ -0,0 +1,21 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: komodo
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: komodo
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
selector:
matchLabels:
app.kubernetes.io/name: komodo
app.kubernetes.io/instance: {{ .Release.Name }}
endpoints:
- port: http
interval: 30s
scrapeTimeout: 10s
path: /metrics