Skip to content

Commit

Permalink
feat: Create pod monitor for argo-event
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKwan-shopline committed Jan 29, 2024
1 parent c6e0eaa commit d783e22
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion argo-event/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: argo-event
description: A Helm chart for deploying argo event
type: application
version: 0.0.1
version: 0.0.2
23 changes: 23 additions & 0 deletions argo-event/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Used to
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
labels:
release: prometheus-operator
name: {{ .Values.name }}-pod-monitor
spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
podMetricsEndpoints:
- port: metrics
selector:
matchLabels:
owner-name: {{ .Values.name }}
matchExpressions:
- key: controller
operator: In
values:
- eventsource-controller
- eventbus-controller
- sensor-controller

0 comments on commit d783e22

Please sign in to comment.