I am trying to get this metric from prometheus:
sum by(pod) (increase(application_input_total{service="$service"}[1m]))
It is somewhat working, but it has an margin of error in it. This metric shows the amount of requests that our Java application receives. When I do 1 call with Postman, Grafana shows it as 1,09 calls. When I do 20 calls, Grafana shows 22, 60 calls shows 67 in GF and so on. The higher the calls the bigger the difference get.
Someone knows how to solve this? I think it has something to do with the [1m] or with the Prometheus configuration, but not sure what it could be.