admin管理员组文章数量:1125010
Using OpenTelemetry I track user actions (button clicks let's say), that are persisted in Prometheus counter:
{__name__="user_actions_total", instance="1", user_id="123"}
The amount of data is very small, a dozen of actions per month. According to docs, increase()
method is not suitable for such a small data set.
I want to present sum of actions, done by every user over time. Here's the code I tried, but results are incorrect
sum(increase(user_actions_total[$__range])) by (user_id)
本文标签: prometheusHow to sum Prometheous counter with small amout of dataStack Overflow
版权声明:本文标题:prometheus - How to sum Prometheous counter with small amout of data - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736651240a1946144.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论