gocrane / crane

Crane is a FinOps Platform for Cloud Resource Analytics and Economics in Kubernetes clusters. The goal is not only to help users to manage cloud cost easier but also ensure the quality of applications.
https://gocrane.io
Apache License 2.0
1.85k stars 378 forks source link

使用外部Prometheus craned Dashbord 数据展示不全。提示timeout #853

Open xinsir88 opened 1 year ago

xinsir88 commented 1 year ago

我本地安装了Crane服务,通过调用外部的Prometheus进行获取节点数据状态,同时Prometheus也添加了对应的rule规则及对应的targets,单独访问Prometheus对PromSql进行插叙也可以查询到数据。 但是通过craned Dashbord访问状态的时候,F12中会有好多的请求处在Pending状态。 通过查看craned pod的log,提示如下: 2023/08/21 15:29:30 [Recovery] 2023/08/21 15:29:30 panic recovered: write tcp 10.16.34.139:8082 -> 10.105.81.124:58288: i/o timeout /go/pkg/mod/githu.com/gin-gonic/gin@v1.7.7/render/json.go:56 (0x1a1d604)

其中10.16.34.139是craned 的容器ip ,10.105.81.124是craned svc对应的ip

求指导。

qmhu commented 1 year ago

可能的思路是:exec到craned容器内访问prometheus测试下