olares: hami monitoring api for dashboard (#1192)

* feat: hami monitoring api for dashboard

* fix: values bug

---------

Co-authored-by: liuyu <>
This commit is contained in:
eball
2025-04-09 23:17:38 +08:00
committed by GitHub
parent 03fa1f0c88
commit ffce1b6039
21 changed files with 1208 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "hami-webui.fullname" . }}-config
namespace: {{ include "hami-webui.namespace" . }}
data:
config.yaml: |
server:
http:
addr: 0.0.0.0:8000
timeout: 1s
grpc:
addr: 0.0.0.0:9000
timeout: 1s
prometheus:
address: {{ ternary .Values.webui.externalPrometheus.address (printf "http://%s-kube-prometh-prometheus.%s.svc.cluster.local:9090" (include "hami-webui.fullname" .) (include "hami-webui.namespace" .)) .Values.webui.externalPrometheus.enabled }}
timeout: 1m
node_selectors:
{{- range $key, $value := .Values.webui.vendorNodeSelectors }}
{{ $key }}: {{ $value }}
{{- end }}