简体   繁体   English

Munin:如何忽略计数器的重置

[英]Munin: how to ignore reset of counter

I have a munin graph to see how many requests my application is getting every minute. 我有一个munin图,查看我的应用程序每分钟收到多少请求。 In order to do that I specify "graph_period minute" and I set my counter to be of type DERIVE ("counter.type DERIVE"). 为此,我指定“ graph_period minutes”,并将计数器设置为DERIVE类型(“ counter.type DERIVE”)。 The only issue is that when I restart my application the counter will go back to zero and munin will have a negative number for number of requests in the graph. 唯一的问题是,当我重新启动应用程序时,计数器将返回零,并且munin在图中的请求数将为负数。

Is there any way to tell munin that the counter is monotonically increasing so that if the counter decreases then it doesn't graph a negative value and updates it's current value to the new value of the counter? 有什么方法可以告诉munin计数器是单调递增的,因此,如果计数器递减,则它不会绘制负值并将其当前值更新为计数器的新值?

Juste use : 正义使用:

counter.type COUNTER

In some cases you might prefer : 在某些情况下,您可能更喜欢:

counter.type DERIVE
counter.min 0

Source 资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM