diff --git a/.deploy/proksi/Chart.yaml b/.deploy/proksi/Chart.yaml index 0b546f0..fd54f31 100644 --- a/.deploy/proksi/Chart.yaml +++ b/.deploy/proksi/Chart.yaml @@ -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 diff --git a/.deploy/proksi/templates/servicemonitor.yaml b/.deploy/proksi/templates/podmonitor.yaml similarity index 58% rename from .deploy/proksi/templates/servicemonitor.yaml rename to .deploy/proksi/templates/podmonitor.yaml index 034d214..112a2d7 100644 --- a/.deploy/proksi/templates/servicemonitor.yaml +++ b/.deploy/proksi/templates/podmonitor.yaml @@ -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: diff --git a/.deploy/proksi/values.yaml b/.deploy/proksi/values.yaml index 0ba51ac..5d28e2c 100644 --- a/.deploy/proksi/values.yaml +++ b/.deploy/proksi/values.yaml @@ -107,6 +107,6 @@ testProbability: 100 metrics: enabled: true containerPort: 9001 - serviceMonitor: + podMonitor: enabled: true interval: "10s"