Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count_over_time() query metric aggregator displaying unexpectedly in Grafana #2634

Closed
wcedmisten opened this issue Sep 17, 2020 · 3 comments
Closed

Comments

@wcedmisten
Copy link

wcedmisten commented Sep 17, 2020

Describe the bug
count_over_time() does not aggregate over the range specified in the query, and instead shows individual spikes of value 1 for each log entry.

To Reproduce
Steps to reproduce the behavior:

  1. Started Loki 1.3.0 via loki-stack-0.31.1 helm chart
  2. Started Promtail 1.3.0 to tail Python code being deployed in a kubernetes service
  3. Query: count_over_time( {instance="mionlinewatcher-9f5bb9c45-m7p74"}[24h] |= "Successfully submitted task: recording-" )

Expected behavior
Graph shown in grafana has an increasing value, starting at 0 and resulting in a final value of 34.

Environment:

  • Infrastructure: kubernetes
  • Deployment tool: helm

Screenshots, Promtail config, or terminal output
image

image

@cyriltovena
Copy link
Contributor

We might have fixed this one after 1.3 can you try some more recent release and confirm if still unexpected please ?

@wcedmisten
Copy link
Author

Will do, thanks!

@wcedmisten
Copy link
Author

Upgrading to 1.6.0 fixed this issue! Thanks!

cyriltovena pushed a commit to cyriltovena/loki that referenced this issue Jun 11, 2021
* Upgrade Thanos to master

Signed-off-by: Ganesh Vernekar <[email protected]>

* Fix lint

Signed-off-by: Ganesh Vernekar <[email protected]>

* Update deps

Signed-off-by: Ganesh Vernekar <[email protected]>

* Change proto library and update Makefile

Signed-off-by: Ganesh Vernekar <[email protected]>

* Add CHANGELOG entry

Signed-off-by: Ganesh Vernekar <[email protected]>

* Comments for go.mod overrides

Signed-off-by: Ganesh Vernekar <[email protected]>

* Upgrade github.com/aws/aws-sdk-go to v1.30.16

Signed-off-by: Ganesh Vernekar <[email protected]>

* Add PR number in changelog entry

Signed-off-by: Ganesh Vernekar <[email protected]>

* Fix review comments

Signed-off-by: Ganesh Vernekar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants