[VOL-5506] Enable grpc stats
Change-Id: I106d78d29a637065aca3d825164ec2ae6ff84003
Signed-off-by: Abhay Kumar <abhay.kumar@radisys.com>
diff --git a/voltha-go-controller/Chart.yaml b/voltha-go-controller/Chart.yaml
index 5e69cd1..7c0e916 100644
--- a/voltha-go-controller/Chart.yaml
+++ b/voltha-go-controller/Chart.yaml
@@ -20,13 +20,13 @@
# -----------------------------------------------------------------------
# appVersion refers to release version of voltha-go-controller
-appVersion: "0.1.7"
+appVersion: "0.1.14"
description: A Helm chart for Kubernetes
name: voltha-go-controller
## Chart version for package voltha-go-controller
## Increment when Chart.yaml changes
-version: "2.15.0"
+version: "2.15.1"
# [EOF]
diff --git a/voltha-go-controller/templates/service.yaml b/voltha-go-controller/templates/service.yaml
index 7c2adb3..612537a 100644
--- a/voltha-go-controller/templates/service.yaml
+++ b/voltha-go-controller/templates/service.yaml
@@ -15,15 +15,31 @@
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: "{{ .Chart.Name }}"
+ app.kubernetes.io/part-of: "voltha"
+ app.kubernetes.io/stack: "{{ .Values.global.stack_name }}"
+ app: "{{ .Chart.Name }}"
+ release: "{{ .Release.Name }}"
name: "{{ tpl .Values.voltha_go_controller.endpoints.address . }}"
namespace: {{ .Release.Namespace }}
spec:
ports:
- name: of
port: {{ .Values.voltha_go_controller.ofPort }}
+ protocol: TCP
targetPort: {{ .Values.voltha_go_controller.ofPort }}
- name: ui
port: {{ .Values.voltha_go_controller.uiPort }}
+ protocol: TCP
targetPort: {{ .Values.voltha_go_controller.uiPort }}
+ - name: promserver
+ port: 8081
+ protocol: TCP
+ targetPort: 8081
selector:
app: "{{ .Chart.Name }}"
diff --git a/voltha-go-controller/templates/servicemonitor.yaml b/voltha-go-controller/templates/servicemonitor.yaml
new file mode 100644
index 0000000..4f07f7a
--- /dev/null
+++ b/voltha-go-controller/templates/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: "{{ .Chart.Name }}"
+ app.kubernetes.io/part-of: "voltha"
+ app.kubernetes.io/stack: "{{ .Values.global.stack_name }}"
+ app: "{{ .Chart.Name }}"
+ release: "{{ .Release.Name }}"
+ name: "{{ .Release.Name }}"
+ namespace: "{{ .Release.Namespace }}"
+spec:
+ endpoints:
+ - interval: 15s
+ path: /metrics
+ port: promserver
+ namespaceSelector:
+ matchNames:
+ - "voltha"
+ selector:
+ matchLabels:
+ app: "{{ .Chart.Name }}"
+ release: "{{ .Release.Name }}"
+
diff --git a/voltha-go-controller/values.yaml b/voltha-go-controller/values.yaml
index d362c2d..0be450a 100644
--- a/voltha-go-controller/values.yaml
+++ b/voltha-go-controller/values.yaml
@@ -16,6 +16,9 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
+nameOverride: ~
+fullNameOverride: ~
+
global:
stack_name: voltha
log_level: "WARN"
@@ -47,8 +50,6 @@
pullPolicy: '{{ .Values.global.image_pullPolicy | default "Always" }}'
imagePullSecrets: []
-nameOverride: ""
-fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created