Wrong count of rows on different time ranges

Hello,
I have the following query:

sum(count_over_time({server="prod", operation="Profil aufgerufen"} |= `profileType=basic` | logfmt | __error__=`` [$__interval]))

Selecting a greater time range gives me less result rows.
Last 2 days: 540 rows
Last 7 days: 310 rows

How is this possible? Am I missing something or is the query wrong?
Thanks

As I understand the global variables what you need is the $__range variable instead of the $__interval variable. See the docs.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.