问题描述
我在我的一个应用程序中使用千分尺api,并使用Timer
监视与上游延迟相关的指标。在执行此操作时,我观察到_sum变量将接近图中的10G值,并下降至接近-10G。我怀疑这是因为值溢出了。
public void recordTime(String name,long value,String topic,TimeUnit unit) { Timer timer = topicTimerCache.computeIfAbsent(name+topic,x->Metrics.timer(name,getSplittedTopicTag(topic))); timer.record(value,unit);
在下面的问题中,我读到普罗米修斯支持
每秒增加十亿。就我而言,我什至没有达到那个规模。
prometheus: how prometheus handles the data type overflow?
帮助我找出问题所在。预先感谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)