Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

监控大盘,添加图表中"连接空值" 选择开启和关闭都会连接空值 #256

Open
shenghuofei opened this issue Feb 20, 2023 · 9 comments

Comments

@shenghuofei
Copy link

前端版本:5.15.0
后端版本:v5.15.0-87899cbedbc7bfcfff61052ebeed945a57a418d2

image

关闭连接空值,实际上还是连接了空值,如何能不显示空值(NaN)呢

image

@shenghuofei
Copy link
Author

promethues查询结果如下:
prom

@jsers
Copy link
Contributor

jsers commented Feb 20, 2023

需要贴下查询接口返回的数据,看下 “空值” 的点到底返回了什么值
可以在浏览器控制台里面看到,Network -> FetchXHR
image

@shenghuofei
Copy link
Author

返回的就是NaN
image

@jsers
Copy link
Contributor

jsers commented Feb 21, 2023 via email

@shenghuofei
Copy link
Author

这个就是一个大盘,不是告警,配个表达式(>0)不太合适,另外这个NaN应该是夜莺后端处理的,看promethues本身的查询应该是没有数据的,可以跟后端同学一起沟通看看

@UlricQin
Copy link
Member

n9e查询prom实际只是一个proxy,没有额外的逻辑

@shenghuofei
Copy link
Author

有NaN的情况下,promethues和grafana都是断点没连的,这块可以看看前端是否能处理

@jsers
Copy link
Contributor

jsers commented Feb 22, 2023 via email

@shenghuofei
Copy link
Author

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants