Skip to content

Commit

Permalink
feat: Add service monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya-de committed Nov 20, 2023
1 parent 4e17682 commit e78b5f0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions charts/matomo/templates/service-monitor.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e78b5f0

Please sign in to comment.