Skip to content

Commit

Permalink
(add) : protocol setting for service metrics
Browse files Browse the repository at this point in the history
Signed-off-by: VILJkid <[email protected]>
  • Loading branch information
VILJkid committed Sep 6, 2024
1 parent e1dabb9 commit 23f6ff7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/opensearch-dashboards/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions charts/opensearch-dashboards/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions charts/opensearch/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions charts/opensearch/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 23f6ff7

Please sign in to comment.