Skip to content

Conversation

@jjnesbitt
Copy link
Collaborator

@jjnesbitt jjnesbitt commented Dec 24, 2025

One of the fixes is the following:

Fix division by zero errors in prometheus data collection

We don't disallow results of just one time step when fetching the container CPU usage from prometheus. Since we assume the result is a range, this can lead to a division by zero error if we ever try to determine the duration of the timeline using the difference between the first and last entries in the timeline. This change forbids that case.

@jjnesbitt jjnesbitt added the analytics-db Relating to the Analytics Database and/or Django application label Dec 24, 2025
zackgalbreath
zackgalbreath previously approved these changes Jan 5, 2026
@jjnesbitt jjnesbitt changed the title Fix division by zero errors in prometheus data collection Various improvements to the job processor Jan 6, 2026
@jjnesbitt jjnesbitt marked this pull request as ready for review January 6, 2026 16:23
@jjnesbitt jjnesbitt merged commit 5e75e8a into main Jan 6, 2026
5 checks passed
@jjnesbitt jjnesbitt deleted the misc-webhook-fixes branch January 6, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

analytics-db Relating to the Analytics Database and/or Django application

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants