From c370829135d31c7d80783d5e86ab82b3204eb5b5 Mon Sep 17 00:00:00 2001 From: "Kwiatosz, Krzysztof" Date: Thu, 3 Aug 2023 09:11:29 +0200 Subject: [PATCH] add prom scrape annotation --- .../internal/controllers/serverless/system_state.go | 1 + 1 file changed, 1 insertion(+) diff --git a/components/function-controller/internal/controllers/serverless/system_state.go b/components/function-controller/internal/controllers/serverless/system_state.go index a7eab95fb16b..88907184c91e 100644 --- a/components/function-controller/internal/controllers/serverless/system_state.go +++ b/components/function-controller/internal/controllers/serverless/system_state.go @@ -60,6 +60,7 @@ func (s *systemState) functionAnnotations() map[string]string { return map[string]string{ "prometheus.io/port": "80", "prometheus.io/path": "/metrics", + "prometheus.io/scrape": "true", } }