Skip to content

[bug] fix avg_over_time panic when counter series is missing #5300

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

Merged
merged 3 commits into from
Jul 23, 2025

Conversation

ie-pham
Copy link
Contributor

@ie-pham ie-pham commented Jun 17, 2025

What this PR does:

The avg_over_time metrics calculation relies on a pair of series per actual value and in some occurrences, if one of the pair is no longer in the resulting time series, a panic occurs. The fix is to check whether the series exist before doing aggregation.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@ie-pham ie-pham changed the title [bug] fix panic when counter series is missing [bug] fix avg_over_time panic when counter series is missing Jun 17, 2025
@ie-pham ie-pham merged commit 055450a into grafana:main Jul 23, 2025
37 of 38 checks passed
mapno pushed a commit to mapno/tempo that referenced this pull request Jul 24, 2025
…#5300)

* [bug] fix panic when counter series is missing

* changelog

* lint
mapno added a commit that referenced this pull request Jul 24, 2025
…5439)

* [bug] fix panic when counter series is missing

* changelog

* lint

Co-authored-by: J Pham <94262131+ie-pham@users.noreply.github.com>
ruslan-mikhailov pushed a commit to ruslan-mikhailov/tempo that referenced this pull request Jul 29, 2025
…#5300)

* [bug] fix panic when counter series is missing

* changelog

* lint
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

Successfully merging this pull request may close these issues.

2 participants