File tree Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ app.kubernetes.io/part-of: oada
50
50
{ { .Values.kafka.brokers | join " ," | default $brokers } }
51
51
{ {- end -} }
52
52
53
- { {/* Whether add Prometheus monitors */} }
53
+ { {/* Whether to add Prometheus monitors */} }
54
54
{ {- define " oada.prometheus" -} }
55
55
{ { .Values.prometheus | default (.Capabilities.APIVersions.Has " monitoring.coreos.com/v1" ) } }
56
56
{ {- end -} }
Original file line number Diff line number Diff line change 12
12
image : {{ .Values.arangodb.image }}:{{ .Values.arangodb.tag }}
13
13
mode : Single
14
14
environment : {{ .Values.global.development | ternary "Development" "Production" }}
15
+ metrics :
16
+ enabled : {{ include "oada.prometheus" . }}
15
17
externalAccess :
16
18
{{/* Disable external access for Production */}}
17
19
type : {{ .Values.global.development | ternary "Auto" "None" }}
Original file line number Diff line number Diff line change @@ -154,6 +154,8 @@ spec:
154
154
app.kubernetes.io/instance : {{ $.Release.Name }}
155
155
podMetricsEndpoints :
156
156
- port : prometheus
157
+ namespaceSelector :
158
+ any : false
157
159
{{- end }}
158
160
---
159
161
{{ end -}}
Original file line number Diff line number Diff line change 42
42
enabled : true
43
43
{{- end }}
44
44
developerMode : {{ .Values.global.development }}
45
+ {{- if eq (include "oada.prometheus" $) "true" }}
46
+ ---
47
+ apiVersion : monitoring.coreos.com/v1
48
+ kind : ServiceMonitor
49
+ metadata :
50
+ namespace : {{ .Release.Namespace }}
51
+ name : redpanda-{{ .Release.Name }}
52
+ labels :
53
+ app.kubernetes.io/name : redpanda
54
+ app.kubernetes.io/instance : {{ .Release.Name }}
55
+ {{- include "oada.chart.labels" . | nindent 4 }}
56
+ spec :
57
+ selector :
58
+ matchLabels :
59
+ app.kubernetes.io/name : redpanda
60
+ app.kubernetes.io/instance : {{ .Release.Name }}
61
+ endpoints :
62
+ - port : admin
63
+ namespaceSelector :
64
+ any : false
65
+ {{- end }}
45
66
{{- end }}
You can’t perform that action at this time.
0 commit comments