Skip to content

feat: add transfer and cost analytics - #14

Merged
BK1031 merged 2 commits into
mainfrom
bk1031/depot-cost-analytics
Sep 3, 2026
Merged

feat: add transfer and cost analytics#14
BK1031 merged 2 commits into
mainfrom
bk1031/depot-cost-analytics

Conversation

@BK1031

@BK1031 BK1031 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor
  • record immutable backend and byte totals for completed uploads and downloads
  • exclude failed downloads from transferred-byte metrics while reporting their failure count
  • add transfer and cost analytics with 7, 30, and 90-day windows
  • add monthly estimate and daily request-cost trend graphs
  • add a cost explorer with per-bucket and per-storage-backend breakdowns
  • keep the dashboard cost card focused on the headline estimate and explorer link
  • leave provider-specific S3-compatible backends explicitly unpriced

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T06:26:08.975391Z a587008 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a587008f01

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread depot/service/analytics.go Outdated
Comment on lines +257 to +261
if backend, ok := metadataByName[name]; ok {
backendEstimate.Provider = backend.Provider
backendEstimate.Region = backend.Region
}
backendEstimate.Priced = supportsAWSS3StandardPricing(backendEstimate.Provider, backendEstimate.Region)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve pricing metadata for historical transfers

When an administrator changes a backend's provider or region through UpdateStorageBackend, this lookup applies the new metadata to every transfer logged under that backend name during the reporting period. A compatible-to-AWS change therefore prices earlier compatible requests as AWS, while the reverse drops legitimate AWS request costs. Store provider/region snapshots with each access log or otherwise segment historical request pricing from the backend's current metadata.

Useful? React with 👍 / 👎.

@BK1031
BK1031 merged commit 26a0319 into main Sep 3, 2026
7 checks passed
@BK1031
BK1031 deleted the bk1031/depot-cost-analytics branch September 3, 2026 06:34
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.

1 participant