From 14f24fb1dae75db5856279bc4029f426ecf0b4eb Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Sun, 19 May 2024 11:44:36 +0200 Subject: [PATCH] chore(contour): collect metrics --- contour/resources/podmonitors.yaml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 contour/resources/podmonitors.yaml diff --git a/contour/resources/podmonitors.yaml b/contour/resources/podmonitors.yaml new file mode 100644 index 0000000..e4f0005 --- /dev/null +++ b/contour/resources/podmonitors.yaml @@ -0,0 +1,33 @@ +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: contour-pods + labels: + prometheus: default +spec: + selector: + matchLabels: + app: contour-contour + namespaceSelector: + matchNames: + - projectcontour + podMetricsEndpoints: + - port: metrics + path: /metrics +--- +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: envoy-pods + labels: + prometheus: default +spec: + selector: + matchLabels: + app: envoy-contour + namespaceSelector: + matchNames: + - projectcontour + podMetricsEndpoints: + - port: metrics + path: /stats/prometheus \ No newline at end of file