grafana - Prometheus increase() does not detect counter update after service restart (prometheus-client 0.16.0) - Stack Overflow

I have a service running prometheus-client version 0.16.0.I run one instance of the service per region

I have a service running prometheus-client version 0.16.0.

I run one instance of the service per region. The service runs a job that updates a counter, which has several labels. I am trying to determine whether there was or was not an increase in the counter for a specific set of labels.

Issue: After a restart of the service, the counter gets updated, but increase() does not detect the change.

After the restart, the counter is set to 1, but increase() does not register this as an increase.

Questions: Why does increase() not detect the value change after a restart? How can I ensure increase() properly registers this kind of update? Are there alternative approaches to detect changes despite service restarts?

Additional Info: AFAIK, the counter is not pre-registered before being updated.

Any insights would be greatly appreciated!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745125383a4612660.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信