From ec452b50a4a1ea0aa0e18836bfe80ca1dab20f1b Mon Sep 17 00:00:00 2001 From: Rashmi Pujar Date: Thu, 21 Apr 2022 12:29:14 -0400 Subject: [POLICY] Disable prometheus monitoring by default ServiceMonitor resource not part of native Kubernetes, it is a custom resource defined via Prometheus operator. Prometheus operator deployment is a pre-requisite to enable creating a ServiceMonitor objects. Issue-ID: POLICY-4096 Signed-off-by: Rashmi Pujar Change-Id: Ia672d5d5982e61c00f8effccad0929240f54efb2 --- .../policy/components/policy-apex-pdp/templates/serviceMonitor.yaml | 4 ++-- kubernetes/policy/components/policy-apex-pdp/values.yaml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'kubernetes/policy/components/policy-apex-pdp') diff --git a/kubernetes/policy/components/policy-apex-pdp/templates/serviceMonitor.yaml b/kubernetes/policy/components/policy-apex-pdp/templates/serviceMonitor.yaml index dbf6a7cd6a..8284c73ed1 100644 --- a/kubernetes/policy/components/policy-apex-pdp/templates/serviceMonitor.yaml +++ b/kubernetes/policy/components/policy-apex-pdp/templates/serviceMonitor.yaml @@ -18,6 +18,6 @@ # ============LICENSE_END========================================================= */}} -{{- if .Values.prometheus.enabled }} +{{- if .Values.global.prometheusEnabled }} {{ include "common.serviceMonitor" . }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/kubernetes/policy/components/policy-apex-pdp/values.yaml b/kubernetes/policy/components/policy-apex-pdp/values.yaml index 6adf0e6609..c8c83cefba 100755 --- a/kubernetes/policy/components/policy-apex-pdp/values.yaml +++ b/kubernetes/policy/components/policy-apex-pdp/values.yaml @@ -140,9 +140,6 @@ serviceAccount: roles: - read -prometheus: - enabled: true - metrics: serviceMonitor: # Override the labels based on the Prometheus config parameter: serviceMonitorSelector. -- cgit 1.2.3-korg