File tree Expand file tree Collapse file tree
deployment/helm/charts/onyx Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ home: https://www.onyx.app/
55sources :
66 - " https://github.com/onyx-dot-app/onyx"
77type : application
8- version : 0.4.40
8+ version : 0.4.41
99appVersion : latest
1010annotations :
1111 category : Productivity
Original file line number Diff line number Diff line change 1+ {{- if .Values.monitoring.serviceMonitors.enabled }}
2+ apiVersion : monitoring.coreos.com/v1
3+ kind : ServiceMonitor
4+ metadata :
5+ name : {{ include "onyx.fullname" . }}-api
6+ labels :
7+ {{- include "onyx.labels" . | nindent 4 }}
8+ {{- with .Values.monitoring.serviceMonitors.labels }}
9+ {{- toYaml . | nindent 4 }}
10+ {{- end }}
11+ spec :
12+ namespaceSelector :
13+ matchNames :
14+ - {{ .Release.Namespace }}
15+ selector :
16+ matchLabels :
17+ app : {{ .Values.api.deploymentLabels.app }}
18+ endpoints :
19+ - port : api-server-port
20+ path : /metrics
21+ interval : 30s
22+ scrapeTimeout : 10s
23+ {{- end }}
Original file line number Diff line number Diff line change 7474 interval : 30s
7575 scrapeTimeout : 10s
7676{{- end }}
77+ {{- if gt (int .Values.celery_worker_heavy.replicaCount) 0 }}
78+ ---
79+ apiVersion : monitoring.coreos.com/v1
80+ kind : ServiceMonitor
81+ metadata :
82+ name : {{ include "onyx.fullname" . }}-celery-worker-heavy
83+ labels :
84+ {{- include "onyx.labels" . | nindent 4 }}
85+ {{- with .Values.monitoring.serviceMonitors.labels }}
86+ {{- toYaml . | nindent 4 }}
87+ {{- end }}
88+ spec :
89+ namespaceSelector :
90+ matchNames :
91+ - {{ .Release.Namespace }}
92+ selector :
93+ matchLabels :
94+ app : {{ .Values.celery_worker_heavy.deploymentLabels.app }}
95+ metrics : " true"
96+ endpoints :
97+ - port : metrics
98+ path : /metrics
99+ interval : 30s
100+ scrapeTimeout : 10s
101+ {{- end }}
77102{{- end }}
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ monitoring:
264264 # The sidecar must be configured with label selector: grafana_dashboard=1
265265 enabled : false
266266 serviceMonitors :
267- # -- Set to true to deploy ServiceMonitor resources for Celery worker metrics endpoints.
267+ # -- Set to true to deploy ServiceMonitor resources for API server and Celery worker metrics endpoints.
268268 # Requires the Prometheus Operator CRDs (included in kube-prometheus-stack).
269269 # Use `labels` to match your Prometheus CR's serviceMonitorSelector (e.g. release: onyx-monitoring).
270270 enabled : false
You can’t perform that action at this time.
0 commit comments