gpt4 book ai didi

Graphite :显示与之前值的变化

转载 作者:行者123 更新时间:2023-12-02 16:34:55 35 4
gpt4 key购买 nike

我正在向 Graphite 发送在垃圾收集中花费的时间(通过 jmx 从 jvm 获取)。这是一个增加的计数器。他们是否有一种方法可以让 Graphite 绘制每分钟的变化图,以便我可以看到一个图表,显示每分钟 GC 所花费的时间?

最佳答案

您应该能够使用导数函数将计数器转换为命中率,然后使用汇总函数将计数器转换为您之后的时间范围。

&target=summarize(derivative(java.gc_time), "1min") # time spent per minute

衍生品(系列列表)

This is the opposite of the integral function. This is useful for taking a 
running totalmetric and showing how many requests per minute were handled.

&target=derivative(company.server.application01.ifconfig.TXPackets)

每次运行 ifconfig 时,RX 和 TXPackets 都会更高(假设有网络流量。)通过应用导数函数,您可以了解每分钟发送或接收的数据包,即使您只记录总数。

summarize(seriesList,intervalString,func='sum',alignToFrom=False)

Summarize the data into interval buckets of a certain size.
By default, the contents of each interval bucket are summed together.
This is useful for counters where each increment represents a discrete event and
retrieving a “per X” value requires summing all the events in that interval.

来源:http://graphite.readthedocs.org/en/0.9.10/functions.html

关于 Graphite :显示与之前值的变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12009481/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com