From e78b5f0587e34cbee817ee1d47c10399c1a9b21b Mon Sep 17 00:00:00 2001 From: Stefan Krenz Date: Mon, 20 Nov 2023 15:22:13 +0100 Subject: [PATCH] feat: Add service monitor --- charts/matomo/templates/service-monitor.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 charts/matomo/templates/service-monitor.yaml diff --git a/charts/matomo/templates/service-monitor.yaml b/charts/matomo/templates/service-monitor.yaml new file mode 100644 index 0000000..446d5b7 --- /dev/null +++ b/charts/matomo/templates/service-monitor.yaml @@ -0,0 +1,18 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: {{ include "matomo.fullname" . }}-queue-metrics + labels: {{- include "matomo.labels" . | nindent 4 }} + app.kubernetes.io/component: app +spec: + endpoints: + - port: http + path: /metrics + interval: 15s + scrapeTimeout: 10s + namespaceSelector: + matchNames: + - {{ .Release.Name }} + selector: + matchLabels: {{- include "matomo.labels" . | nindent 4 }} + app.kubernetes.io/component: app