grafana 添加prometheus数据源 报错 HTTP Error Bad Gateway

  • Choerodon平台版本: 0.21

  • 遇到问题的执行步骤:
    按照安装文档配置装的,安装没报错,服务都可以启动

配置文件:

但是访问
http://grafana.192.168.200.172.nip.io/

查看 任意服务均无数据,

新增 Prometheus数据源 ,尝试使用
http://prometheus.192.168.200.172.nip.io:9100
http://prometheus.192.168.200.172.nip.io:9090
http://prometheus.192.168.200.172.nip.io
http://prometheus-operator-prometheus:9090
均报错

HTTP Error Bad Gateway

补充:
访问 http://prometheus.192.168.200.172.nip.io/
会报 503

默认安装会有一个 Prometheus 的 datasource。

就是默认的报错,采不到数据,才尝试新增

看起来是 prometheus-prometheus-operator-prometheus 这个 statefulset 没有正常启动。你看一下具体是什么原因导致这个 statefulset 没有正常启动。

根据这篇文档装的,好像没得这个pod:
prometheus-prometheus-operator-prometheus
http://choerodon.io/zh/docs/installation-configuration/steps/operation/monitoring/

它是 Prometheus-operater 核心pod,没有它一定不正常。你describe 看一下是什么导致这个没有成功调度

kubectl describe statefulset -n monitoring prometheus-prometheus-operator-prometheus 

应该是 k8s 问题,你尝试重启集群。