最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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!

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论