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