发布于 2020-08-12 19:10:22
您可以检查名称空间istio-system中的kiali configmap (假设您使用了istio安装的默认名称空间)。外部服务下面应该有一个prometheus标签。改变它,重新启动吊舱。
更新20200821:我们的配置映射(Istio (v1.5.6)通过istioctl安装)
kind: ConfigMap
apiVersion: v1
metadata:
name: kiali
namespace: istio-system
selfLink: /api/v1/namespaces/istio-system/configmaps/kiali
uid: 660a2bfe-c71b-45ab-a438-ed61532dd8e3
resourceVersion: '31024421'
creationTimestamp: '2020-07-24T10:18:24Z'
labels:
app: kiali
operator.istio.io/component: AddonComponents
operator.istio.io/managed: Reconcile
operator.istio.io/version: 1.5.6
release: istio
annotations:
data:
config.yaml: |
istio_component_namespaces:
grafana: istio-system
tracing: istio-system
pilot: istio-system
prometheus: istio-system
istio_namespace: istio-system
auth:
strategy: login
deployment:
accessible_namespaces: ['**']
login_token:
signing_key: "xxxxxxxxxxxxxxxxxx"
server:
port: 20001
web_root: /kiali
external_services:
istio:
url_service_version: http://istio-pilot.istio-system:8080/version
tracing:
url:
in_cluster_url: http://tracing/jaeger
grafana:
url:
in_cluster_url: http://grafana:3000
prometheus:
url: http://prometheus.istio-system:9090发布于 2021-06-07 19:22:57
为了使其工作,我必须在ConfigMap命名空间中编辑名为kiali的istio-system。我在external_services部分下添加了这一行:
prometheus:
url: http://my-prometheus-kube-prometh-prometheus.default.svc.cluster.local:9090/

发布于 2022-02-22 05:30:56
我有一个类似的错误消息(不是在GCP中),并通过安装Prometheus来解决它:
$ kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.13/samples/addons/prometheus.yaml用您的
release-1.13版本替换istio
https://stackoverflow.com/questions/63372998
复制相似问题