[VOL-5506] Enable grpc stats
Change-Id: I106d78d29a637065aca3d825164ec2ae6ff84003
Signed-off-by: Abhay Kumar <abhay.kumar@radisys.com>
diff --git a/voltha/Chart.yaml b/voltha/Chart.yaml
index 030cc87..67d77ee 100644
--- a/voltha/Chart.yaml
+++ b/voltha/Chart.yaml
@@ -17,7 +17,7 @@
## Chart version for package 'voltha'
## Increment when Chart.yaml changes
-version: "2.15.2"
+version: "2.15.3"
description: "A Helm chart for Voltha based on K8S resources in Voltha project"
keywords:
@@ -36,6 +36,6 @@
url: "https://www.opennetworking.org"
# appVersion refers to release version of voltha-go
-appVersion: "3.6.20"
+appVersion: "3.7.4"
# [EOF]
diff --git a/voltha/templates/api-svc.yaml b/voltha/templates/api-svc.yaml
index 32dec43..993756d 100644
--- a/voltha/templates/api-svc.yaml
+++ b/voltha/templates/api-svc.yaml
@@ -15,6 +15,16 @@
apiVersion: v1
kind: Service
metadata:
+ annotations:
+ meta.helm.sh/release-name: "{{ .Values.fullNameOverride }}-{{ .Chart.Name }}"
+ meta.helm.sh/release-namespace: "{{ .Release.Namespace }}"
+ labels:
+ app.kubernetes.io/managed-by: {{ quote .Release.Service }}
+ app.kubernetes.io/name: "read-write-core"
+ app.kubernetes.io/part-of: "voltha"
+ app.kubernetes.io/stack: "{{ .Values.global.stack_name }}"
+ app: "rw-core"
+ release: "{{ .Release.Name }}"
name: "{{ template "fullname" . }}-api"
namespace: "{{ .Release.Namespace }}"
spec:
@@ -23,5 +33,5 @@
port: 55555
targetPort: 50057
selector:
- app: rw-core
+ app: "rw-core"
release: "{{ .Release.Name }}"
diff --git a/voltha/templates/core-servicemonitor.yaml b/voltha/templates/core-servicemonitor.yaml
new file mode 100644
index 0000000..9e06f4d
--- /dev/null
+++ b/voltha/templates/core-servicemonitor.yaml
@@ -0,0 +1,42 @@
+# Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors
+#
+# 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.
+---
+apiVersion: monitoring.coreos.com/v1
+kind: ServiceMonitor
+metadata:
+ annotations:
+ meta.helm.sh/release-name: "{{ .Values.fullNameOverride }}-{{ .Chart.Name }}"
+ meta.helm.sh/release-namespace: "{{ .Release.Namespace }}"
+ labels:
+ app.kubernetes.io/managed-by: {{ quote .Release.Service }}
+ app.kubernetes.io/name: "read-write-core"
+ app.kubernetes.io/part-of: "voltha"
+ app.kubernetes.io/stack: "{{ .Values.global.stack_name }}"
+ app: "rw-core"
+ release: "{{ .Release.Name }}"
+ name: "{{ .Release.Name }}"
+ namespace: "{{ .Release.Namespace }}"
+spec:
+ endpoints:
+ - interval: 15s
+ path: /metrics
+ port: promserver
+ namespaceSelector:
+ matchNames:
+ - "voltha"
+ selector:
+ matchLabels:
+ app: "rw-core"
+ release: "{{ .Release.Name }}"
+
diff --git a/voltha/templates/core-svc.yaml b/voltha/templates/core-svc.yaml
index c3d115e..76e97ed 100644
--- a/voltha/templates/core-svc.yaml
+++ b/voltha/templates/core-svc.yaml
@@ -15,6 +15,16 @@
apiVersion: v1
kind: Service
metadata:
+ annotations:
+ meta.helm.sh/release-name: "{{ .Values.fullNameOverride }}-{{ .Chart.Name }}"
+ meta.helm.sh/release-namespace: "{{ .Release.Namespace }}"
+ labels:
+ app.kubernetes.io/managed-by: {{ quote .Release.Service }}
+ app.kubernetes.io/name: "read-write-core"
+ app.kubernetes.io/part-of: "voltha"
+ app.kubernetes.io/stack: "{{ .Values.global.stack_name }}"
+ app: "rw-core"
+ release: "{{ .Release.Name }}"
name: "{{ template "fullname" . }}-core"
namespace: "{{ .Release.Namespace }}"
spec:
@@ -22,6 +32,9 @@
- name: core-grpc
port: 55558
targetPort: 50058
+ - name: promserver
+ port: 8081
+ targetPort: 8081
selector:
app: rw-core
release: "{{ .Release.Name }}"