-
Notifications
You must be signed in to change notification settings - Fork 75
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
Comments
连接空值的意思是,某些情况下返回的数据点不是连续的,但是默认绘制的曲线却是连续未断开的。这时候开启连接空值就会根据 step
补齐缺失的断点,从而使绘制结果是断开的曲线。
目前客户端没有对 NaN 特殊处理,也不清楚这是否是一个正常的值,或许可以稍微修改下表达式 expr > 0 这样可以过滤掉 NaN 值
shenghuofei ***@***.***> 于2023年2月20日周一 19:21写道:
… 返回的就是NaN
[image: image]
<https://user-images.githubusercontent.com/5562615/220091482-5fb95bb8-78d4-4c40-ab80-a456f9c14eaf.png>
—
Reply to this email directly, view it on GitHub
<#256 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYUU6SNWXTPDIGEB6VW2N3WYNHUNANCNFSM6AAAAAAVBTHQFM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
这个就是一个大盘,不是告警,配个表达式(>0)不太合适,另外这个NaN应该是夜莺后端处理的,看promethues本身的查询应该是没有数据的,可以跟后端同学一起沟通看看 |
n9e查询prom实际只是一个proxy,没有额外的逻辑 |
有NaN的情况下,promethues和grafana都是断点没连的,这块可以看看前端是否能处理 |
好的,后面我看下怎么处理
目前你还是可以考虑通过修改 expr 暂时解决,可以改成 expr != NaN (stackoverflow 看有人这么处理)
shenghuofei ***@***.***> 于2023年2月21日周二 20:05写道:
… 有NaN的情况下,promethues和grafana都是断点没连的,这块可以看看前端是否能处理
—
Reply to this email directly, view it on GitHub
<#256 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYUU6RU7QRCX5JILAAJDB3WYSVRBANCNFSM6AAAAAAVBTHQFM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
好的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
前端版本:5.15.0
后端版本:v5.15.0-87899cbedbc7bfcfff61052ebeed945a57a418d2
关闭连接空值,实际上还是连接了空值,如何能不显示空值(NaN)呢
The text was updated successfully, but these errors were encountered: