Skip to content

Commit

Permalink
convert service monitor to pod monitor (#18)
Browse files Browse the repository at this point in the history
* convert service monitor to pod monitor

* upgrade chart version
  • Loading branch information
anvari1313 authored Feb 26, 2024
1 parent 664492b commit fc212a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .deploy/proksi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.0
version: 0.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
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 fc212a1

Please sign in to comment.