Skip to content

Usage issues - #5748

Open
hschu12 wants to merge 24 commits into
masterfrom
UsageIssues
Open

hschu12 wants to merge 24 commits into
masterfrom
UsageIssues

Conversation

@hschu12

@hschu12 hschu12 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Created code for usage generation of Capacity based products that can increase and decrease in a normal usage pattern.

Changed code to collapse reports to be more correct and fill in empty timeslots.

Changes to Usage Page

General:

  • All charts show same top 10 projects based on highest absolute usage at end of time range
  • Uses same color coding across charts

Pie chart:

  • Reintroduced Pie chart of sub project usage.
  • Shows absolute usage at latest point in select time range both for GB and for compute.
  • Changed labeling to only show if can be contained within the slice
Screenshot 2026-08-26 at 12 17 44

Usage over time:

  • Stacked. Shows the usage of each top 10 project by stacking usage.
  • Seperated. shows the usage of each top 10 project by individual lines.
Screenshot 2026-08-26 at 12 19 50 Screenshot 2026-08-26 at 12 19 59

Change in usage over time:

  • Does not show on storage since this does not make sense for negative numbers
  • Shows how much each of the top 10 projects has used in each bucket
Screenshot 2026-08-26 at 12 20 15

Utilization:

  • Minor bug fix resulting in removal of double spikes in utilization or usage due to overlapping reports.
Screenshot 2026-08-26 at 12 20 09

@hschu12
hschu12 requested review from DanThrane and Tiggles August 26, 2026 10:30
Comment thread frontend-web/webclient/app/Accounting/Diagrams/DeltaOverTime.tsx Outdated
Comment thread core2/pkg/accounting/accounting_usage_generator.go
Comment thread core2/pkg/accounting/usage_report.go Outdated
Comment thread core2/pkg/accounting/usage_report.go Outdated
Comment thread core2/pkg/accounting/usage_report.go Outdated
Comment thread core2/pkg/accounting/usage_report.go Outdated
Comment thread core2/pkg/accounting/usage_report.go
Comment thread core2/pkg/accounting/usage_report.go
Comment thread core2/pkg/accounting/usage_report.go
@hschu12
hschu12 requested a review from DanThrane September 2, 2026 20:23

@DanThrane DanThrane left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor things. I think it is important that we have a fallback for the older reports, otherwise we are just breaking a lot of usage data for no good reason. The rest looks fine.

UtilizationPercent100 float64
Timestamp time.Time
Usage int64
Quota int64

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking change. The existing charts will show 0% utilization. We should have a fallback available for this. I don't think we want to purposefully break this when we have somewhat useful data available to us.

Comment thread core2/pkg/accounting/accounting_usage_generator.go
Comment thread core2/pkg/accounting/usage_report_test.go Outdated
…en followe by Sql query to change the older versione. Also found bug in absoluteChildren that did not work for aggregated reports
@hschu12
hschu12 requested a review from DanThrane September 22, 2026 13:38
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.

3 participants