commit | ec452b50a4a1ea0aa0e18836bfe80ca1dab20f1b | [log] [tgz] |
---|---|---|
author | Rashmi Pujar <rashmi.pujar1@bell.ca> | Thu Apr 21 12:29:14 2022 -0400 |
committer | Fiachra Corcoran <fiachra.corcoran@est.tech> | Fri Apr 22 10:33:10 2022 +0000 |
tree | aaaeca6c8397da18036847cda165fa0d18d8c1cf | |
parent | ccdcd67ed66fa6c71743a3317ffcfffeaae80b6a [diff] |
[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 <rashmi.pujar1@bell.ca> Change-Id: Ia672d5d5982e61c00f8effccad0929240f54efb2
diff --git a/kubernetes/policy/components/policy-drools-pdp/templates/serviceMonitor.yaml b/kubernetes/policy/components/policy-drools-pdp/templates/serviceMonitor.yaml index 1c04296..f8c450c 100644 --- a/kubernetes/policy/components/policy-drools-pdp/templates/serviceMonitor.yaml +++ b/kubernetes/policy/components/policy-drools-pdp/templates/serviceMonitor.yaml
@@ -18,6 +18,6 @@ # ============LICENSE_END========================================================= */}} -{{- if .Values.prometheus.enabled }} +{{- if .Values.global.prometheusEnabled }} {{ include "common.serviceMonitor" . }} {{- end }}
diff --git a/kubernetes/policy/components/policy-drools-pdp/values.yaml b/kubernetes/policy/components/policy-drools-pdp/values.yaml index 344a600..e15ce66 100755 --- a/kubernetes/policy/components/policy-drools-pdp/values.yaml +++ b/kubernetes/policy/components/policy-drools-pdp/values.yaml
@@ -203,9 +203,6 @@ roles: - read -prometheus: - enabled: true - metrics: serviceMonitor: # Override the labels based on the Prometheus config parameter: serviceMonitorSelector.