From 20e786dabf14df8576ace8e54beb88c461db6bf3 Mon Sep 17 00:00:00 2001 From: "Constanti, Mario" Date: Thu, 4 Mar 2021 05:51:19 +0100 Subject: [PATCH] enable metrics scraping via prometheus prometheus as the defacto standard for monitoring in a kubernetes environment is generally configured to scrape metrics only if the observed targets (pods, service, endpoints) has set proper annotations. Signed-off-by: Constanti, Mario --- config/rbac/auth_proxy_service.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/rbac/auth_proxy_service.yaml b/config/rbac/auth_proxy_service.yaml index 6cf656be1..081a93cea 100644 --- a/config/rbac/auth_proxy_service.yaml +++ b/config/rbac/auth_proxy_service.yaml @@ -1,6 +1,10 @@ apiVersion: v1 kind: Service metadata: + annotations: + prometheus.io/scrape: "true" + prometheus.io/port: "8443" + prometheus.io/scheme: "https" labels: control-plane: controller-manager name: controller-manager-metrics-service