From 5c40d386353a3c97edea13c66609eff119afd5d9 Mon Sep 17 00:00:00 2001 From: VILJkid Date: Fri, 6 Sep 2024 14:25:26 +0530 Subject: [PATCH] (add) : protocol setting for service metrics --- charts/opensearch-dashboards/CHANGELOG.md | 1 + charts/opensearch-dashboards/templates/service.yaml | 1 + charts/opensearch/CHANGELOG.md | 1 + charts/opensearch/templates/service.yaml | 3 +++ 4 files changed, 6 insertions(+) diff --git a/charts/opensearch-dashboards/CHANGELOG.md b/charts/opensearch-dashboards/CHANGELOG.md index f628296a..f74453e6 100644 --- a/charts/opensearch-dashboards/CHANGELOG.md +++ b/charts/opensearch-dashboards/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.23.0] ### Added - Added `ServiceMonitor` support for Prometheus monitoring +- Added `protocol` setting in `Service` metrics ### Changed ### Deprecated ### Removed diff --git a/charts/opensearch-dashboards/templates/service.yaml b/charts/opensearch-dashboards/templates/service.yaml index e06a8c66..16962f16 100644 --- a/charts/opensearch-dashboards/templates/service.yaml +++ b/charts/opensearch-dashboards/templates/service.yaml @@ -37,6 +37,7 @@ spec: name: {{ .Values.service.httpPortName | default "http" }} targetPort: {{ .Values.service.port }} - name: {{ .Values.service.metricsPortName | default "metrics" }} + protocol: TCP port: {{ .Values.service.metricsPort }} selector: app: {{ .Chart.Name }} diff --git a/charts/opensearch/CHANGELOG.md b/charts/opensearch/CHANGELOG.md index da5fd917..6bfde3be 100644 --- a/charts/opensearch/CHANGELOG.md +++ b/charts/opensearch/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.30.0] ### Added - Added `ServiceMonitor` support for Prometheus monitoring +- Added `protocol` setting in `Service` metrics ### Changed ### Deprecated ### Removed diff --git a/charts/opensearch/templates/service.yaml b/charts/opensearch/templates/service.yaml index 4c28b2f3..78a6b074 100644 --- a/charts/opensearch/templates/service.yaml +++ b/charts/opensearch/templates/service.yaml @@ -32,6 +32,9 @@ spec: - name: {{ .Values.service.transportPortName | default "transport" }} protocol: TCP port: {{ .Values.transportPort }} + - name: {{ .Values.service.metricsPortName | default "metrics" }} + protocol: TCP + port: {{ .Values.metricsPort }} {{- if .Values.service.loadBalancerIP }} loadBalancerIP: {{ .Values.service.loadBalancerIP }} {{- end }}