【发布时间】:2019-12-16 07:03:25
【问题描述】:
我想在 prometheus 推送网关中将计数器重置为 0,因为 prometheus 推送网关将继续向 prometheus 发送最后一个计数器值。我的情况不会发生这种情况。
【问题讨论】:
-
我认为您需要更多地解释您如何尝试将此值设置为 0,因为根据docs of writing libraries,在重新启动服务器和文档等情况下会发生将 Counter 的值设置为 0说,客户端必须实现 inc() 和 inc(double v)。
-
我重新提出了问题,你能看看这个
标签: python prometheus prometheus-pushgateway