Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 munin 图来查看我的应用程序每分钟收到多少请求。为了做到这一点,我指定了“graph_period minute”并将我的计数器设置为 DERIVE 类型(“counter.type DERIVE”)。唯一的问题是,当我重新启动我的应用程序时,计数器将回到零,并且 munin 将在图中的请求数为负数。
有什么方法可以告诉 munin 计数器是单调递增的,这样如果计数器减小,那么它不会绘制负值并将其当前值更新为计数器的新值?
只是使用:
counter.type COUNTER
在某些情况下,您可能更喜欢:
counter.type DERIVE counter.min 0
资源