From 9335503e051f96380b835cdb26df17a6cf5bb9e6 Mon Sep 17 00:00:00 2001 From: Michael Burt Date: Fri, 15 Jul 2022 14:58:06 -0600 Subject: [PATCH] generate ServiceMonitor for Receive ingestors according to config Signed-off-by: Michael Burt --- jsonnet/kube-thanos/kube-thanos-receive-ingestor.libsonnet | 1 + 1 file changed, 1 insertion(+) diff --git a/jsonnet/kube-thanos/kube-thanos-receive-ingestor.libsonnet b/jsonnet/kube-thanos/kube-thanos-receive-ingestor.libsonnet index d09d079..3208768 100644 --- a/jsonnet/kube-thanos/kube-thanos-receive-ingestor.libsonnet +++ b/jsonnet/kube-thanos/kube-thanos-receive-ingestor.libsonnet @@ -42,4 +42,5 @@ function(params) { for name in tr.config.hashrings }, serviceAccount: ingestors.serviceAccount, + serviceMonitor: if tr.config.serviceMonitor == true then ingestors.serviceMonitor, }