Sum_over_time differences with different intervals

  • What Grafana version and what operating system are you using?
    v9.5.1 (bc353e4b2d) (kube-prometheus-stack-45.27.2)
    macOS Client → Safari

  • What are you trying to achieve?
    I would like to have the same sum for the data no matter the interval.

  • How are you trying to achieve it?
    sum_over_time, rate_counter

  • What happened?
    The overall sum is different with a different interval.

  • What did you expect to happen?
    I expect to show the same data.

  • Can you copy/paste the configuration(s) that you are having problems with?
    sum_over_time({jobtype="pushlogs", x_host_header=~"$Host"} | pattern `<_> <_> <_> <sc_bytes> <_>` | unwrap sc_bytes [$interval])

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No

  • Did you follow any online instructions? If so, what is the URL?
    No

Please mind the screenshots and the “total” value. Can anyone explain why this is happening?