Skip to content

Commit

Permalink
feat: Add ServiceMonitor object to opensearch
Browse files Browse the repository at this point in the history
chore: use name

Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
shubham-cmyk committed Apr 26, 2024
1 parent 6e55aab commit 5a3d97e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/opensearch/templates/serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "opensearch.uname" . }}-service-monitor
name: {{ template "opensearch.name" . }}-service-monitor
namespace: {{ .Release.Namespace }}
labels:
{{- include "opensearch.labels" . | nindent 4 }}
Expand All @@ -14,4 +14,4 @@ spec:
- port: {{ .Values.metricsPort }}
interval: {{ .Values.serviceMonitor.interval }}
path: {{ .Values.serviceMonitor.path }}
{{- end }}
{{- end }}

0 comments on commit 5a3d97e

Please sign in to comment.