summaryrefslogtreecommitdiffstats
path: root/kubernetes/cps/components/cps-core/templates/serviceMonitor.yaml
diff options
context:
space:
mode:
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-09-14 10:29:32 +0100
committerputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-09-22 17:32:49 +0100
commitf5ba7e3a4af502c973807eb6da6c1fee2084aeb2 (patch)
treef5d9804d94ed1a3fc4c85694cb4a92f8972252b8 /kubernetes/cps/components/cps-core/templates/serviceMonitor.yaml
parent3188824be7f3ba27c606d93b14e280fe01db9109 (diff)
[CPS] Rolling update and prometheus changes
1. Rolling update for cps-core 2. Prometheus configuration 3. Image version update to I release 4. Only configurable parameters kept in application.yml Issue-ID: CPS-536, CPS-365, CPS-664 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I33f47750bd3899f9a420256a1d9cef4cb63dff9e
Diffstat (limited to 'kubernetes/cps/components/cps-core/templates/serviceMonitor.yaml')
-rw-r--r--kubernetes/cps/components/cps-core/templates/serviceMonitor.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/kubernetes/cps/components/cps-core/templates/serviceMonitor.yaml b/kubernetes/cps/components/cps-core/templates/serviceMonitor.yaml
new file mode 100644
index 0000000000..a49a662aed
--- /dev/null
+++ b/kubernetes/cps/components/cps-core/templates/serviceMonitor.yaml
@@ -0,0 +1,23 @@
+{{/*
+# ============LICENSE_START=======================================================
+# Copyright (c) 2021 Bell Canada
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+
+# http://www.apache.org/licenses/LICENSE-2.0
+
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+*/}}
+
+{{- if .Values.prometheus.enabled }}
+{{ include "common.serviceMonitor" . }}
+{{- end }} \ No newline at end of file