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

I hope nightingale can add a feature to draw quantile lines. #1848

Open
fanohn opened this issue Jan 26, 2024 · 6 comments
Open

I hope nightingale can add a feature to draw quantile lines. #1848

fanohn opened this issue Jan 26, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@fanohn
Copy link

fanohn commented Jan 26, 2024

监控网络设备有时需要对端口数据流量的95值进行统计计费,希望可以增加绘制分位线功能,谢谢。

@710leo 710leo changed the title 希望nightingale增加绘制分位线功能 I hope nightingale can add a feature to draw quantile lines. Jan 28, 2024
@710leo 710leo added the enhancement New feature or request label Aug 19, 2024
@l0g1n
Copy link

l0g1n commented Aug 28, 2024

相同的需求,求大佬们添加

@UlricQin
Copy link
Member

具体一点?比如查看最近一小时的数据,就把最近一小时的数据整体计算 95 分位的值?如果查看的是最近1周的数据,就把最近一周的数据整体计算 95 分位的值?

@l0g1n
Copy link

l0g1n commented Aug 30, 2024

具体一点?比如查看最近一小时的数据,就把最近一小时的数据整体计算 95 分位的值?如果查看的是最近1周的数据,就把最近一周的数据整体计算 95 分位的值?

不,计算方式不对。

以一月30天为例,默认均为有效取值点,每5分钟1个带宽取值点,每天288个取值点,每天将这288个值降序排列,将最高的5%(288 x 5% = 14.4 个点)的点去掉,第15个点的带宽值作为当日95峰值。将每天的95峰值相加,总和除30天,得到该月的月均日95峰值。

用途就是服务器计费,运营商通过这方式对我们使用的服务器进行计费。

https://blog.cactifans.com/2018/01/20/Cacti95%E8%AE%A1%E8%B4%B9%E9%85%8D%E7%BD%AE/

@UlricQin
Copy link
Member

UlricQin commented Aug 30, 2024

如果你是 9月10 号查看数据,这个95分位的值的计算,是基于9月1号到9月10号的数据,还是8月10号到9月10号? @l0g1n

@l0g1n
Copy link

l0g1n commented Aug 30, 2024

如果你是 9月10 号查看数据,这个95分位的值的计算,是基于9月1号到9月10号的数据,还是8月10号到9月10号? @l0g1n

我觉得是根据选定的时间来计算即可,不一定是一个月,有可能是一周。如果是9月10日查看,而我选择的范围是近一个月。那就是8月10日到9月10日。

image 添加leisi类似上图的中的这种横线

@UlricQin
Copy link
Member

UlricQin commented Sep 6, 2024

@jsers 看看,咱们现在支持配置阈值线,这里新需求是:根据选中的时间段,把原始数据拉回来,然后对原始数据求分位值,当然,分位值可以加多个,具体是99分位还是95分位,支持用户配置

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

No branches or pull requests

4 participants