Skip to content

Commit

Permalink
fix: helm chart serviceMonitor port definition
Browse files Browse the repository at this point in the history
Current `ServiceMonitor` template defines `http` as destination port for
scraping metrics data, which is not set in the `Service` manifest,
however `diag` is.

This commit updates the `ServiceMonitor` manifest to use `diag` port,
which is exposed when prometheus is enabled.

Signed-off-by: Jernej Porenta <jernej.porenta@3fs.si>
  • Loading branch information
nejec committed Apr 10, 2023
1 parent e29faef commit 7193124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/opa-kube-mgmt/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
{{- end }}
spec:
endpoints:
- port: http
- port: diag
interval: {{ .Values.serviceMonitor.interval }}
jobLabel: {{ template "opa.fullname" . }}
namespaceSelector:
Expand Down

0 comments on commit 7193124

Please sign in to comment.