From d04b95ac95544dcdbc0302e892861cf9cf536769 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 15 Nov 2023 14:17:14 +0100 Subject: [PATCH] Fix port and paths of cilium monitor definitions --- argocd/prometheus/templates/monitors.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/argocd/prometheus/templates/monitors.yaml b/argocd/prometheus/templates/monitors.yaml index 213a2af..cdc076d 100644 --- a/argocd/prometheus/templates/monitors.yaml +++ b/argocd/prometheus/templates/monitors.yaml @@ -8,6 +8,7 @@ metadata: spec: podMetricsEndpoints: - port: "9963" + path: /metrics namespaceSelector: matchNames: - kube-system @@ -16,7 +17,7 @@ spec: app.kubernetes.io/name: cilium-operator --- apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor +kind: PodMonitor metadata: name: cilium-agent namespace: {{ .Release.Namespace }} @@ -24,7 +25,8 @@ metadata: {{- include "template.labels" . | nindent 4 }} spec: endpoints: - - port: "9964" + - port: "9962" + path: /metrics namespaceSelector: matchNames: - kube-system @@ -42,6 +44,7 @@ metadata: spec: endpoints: - port: "9965" + path: /metrics namespaceSelector: matchNames: - kube-system