From df6e268eda412d6211cfc522806d3e2ccbcf7b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Fri, 30 Sep 2022 10:33:41 +0300 Subject: [PATCH] elastic-system: Add PodMonitor for exporter --- elastic-system/application.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/elastic-system/application.yml b/elastic-system/application.yml index 2b0c796..053fa30 100644 --- a/elastic-system/application.yml +++ b/elastic-system/application.yml @@ -315,3 +315,14 @@ spec: beat.k8s.elastic.co/name: filebeat podMetricsEndpoints: - port: exporter +--- +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: elasticsearch +spec: + selector: + matchLabels: + app.kubernetes.io/name: elasticsearch-exporter + podMetricsEndpoints: + - port: exporter