diff --git a/charts/kubezero-metrics/templates/istio-service.yaml b/charts/kubezero-metrics/templates/istio-service.yaml index 1aa937d5..a6cea887 100644 --- a/charts/kubezero-metrics/templates/istio-service.yaml +++ b/charts/kubezero-metrics/templates/istio-service.yaml @@ -10,13 +10,13 @@ metadata: {{ include "kubezero-lib.labels" $ | indent 4 }} spec: hosts: - - {{ index $service.url }} + - {{ $service.url }} gateways: - - {{ index $service.gateway }} + - {{ $service.gateway }} http: - route: - destination: - host: metrics-{{- $name }} + host: {{ $service.destination }} --- {{- end }} diff --git a/charts/kubezero-metrics/values.yaml b/charts/kubezero-metrics/values.yaml index 320462da..0d618093 100644 --- a/charts/kubezero-metrics/values.yaml +++ b/charts/kubezero-metrics/values.yaml @@ -181,15 +181,18 @@ istio: ipBlocks: [] url: "" gateway: istio-ingress/ingressgateway + destination: metrics-grafana prometheus: enabled: false ipBlocks: [] url: "" gateway: istio-ingress/ingressgateway + destination: metrics-kube-prometheus-st-prometheus alertmanager: enabled: false ipBlocks: [] url: "" gateway: istio-ingress/ingressgateway + destination: metrics-kube-prometheus-st-alertmanager