Skip to content

Commit

Permalink
convert service monitor to pod monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
anvari1313 committed Feb 26, 2024
1 parent 664492b commit 64d81b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{{ if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }}
{{ if and .Values.metrics.enabled .Values.metrics.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
kind: PodMonitor
metadata:
name: {{ include "proksi.serviceAccountName" . }}
labels:
{{- include "proksi.labels" . | nindent 4 }}
spec:
endpoints:
- path: /metrics
interval: {{ .Values.metrics.serviceMonitor.interval | quote }}
podMetricsEndpoints:
- interval: {{ .Values.metrics.podMonitor.interval | quote }}
path: /metrics
port: metrics
selector:
matchLabels:
Expand Down
2 changes: 1 addition & 1 deletion .deploy/proksi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@ testProbability: 100
metrics:
enabled: true
containerPort: 9001
serviceMonitor:
podMonitor:
enabled: true
interval: "10s"

0 comments on commit 64d81b6

Please sign in to comment.