The easiest way to see what Prometheus is looking at is to query for the
raw data:
apigateway_apicount_counter{field12="field12Value", field13="
field13 Value"}[15m]
On Fri, Oct 16, 2020 at 5:32 PM Ryan Rank <[email protected]> wrote:
> I have an increase query that is not returning the results I'm expecting.
> It's consistently returning a smaller number than I expect.
>
> I'm querying against a counter that only increases by an integer value.
>
> Here's the query:
> sum without (field1, field2, field3, field4, field5, field6, field7,
> field8, field9, field10, field11, field12, field13) (increase
> (apigateway_apicount_counter{field12="field12Value", field13="
> field13 Value"}[15m]))
>
> Results:
> {node="node1"} 2.615 K
> {node="node2"} 2.541 K
> {node="node3"} 2.530 K
> {node="node4"} 2.541 K
>
> When I do a count against the real vales, I'm coming up with the following:
>
> node1 4416
> node2 4271
> node3 3868
> node4 3849
>
> I do see the documentation stating "The increase is extrapolated to cover
> the full time range as specified in the range vector selector, so that it
> is possible to get a non-integer result even if a counter increases only by
> integer increments." Because of this, I do expect some variance, but not as
> much of a difference as I am seeing.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/e855f387-490b-4f93-96b3-5f72c3172e6dn%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/e855f387-490b-4f93-96b3-5f72c3172e6dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/CABbyFmoY7bn9mMHmNGW18t_vS8FKHtWnHaZHHgw5iU7ZBfZtKQ%40mail.gmail.com.