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

visualize usage billing over time #8044

Merged
merged 12 commits into from
Apr 29, 2024

Conversation

Vadman97
Copy link
Member

@Vadman97 Vadman97 commented Mar 18, 2024

Summary

Adds graphs visualizing product usage over time under the workspace billing page.
Allows visualizing the usage over the past year (with monthly granularity) or the past 3 months (with weekly granularity)

Closes HIG-4435

How did you test this change?

TODO switch to new dashboard bar chart.

Screenshot from 2024-04-15 08-33-21
Screenshot from 2024-04-15 08-33-29

Are there any deployment considerations?

no

Does this work require review from our design team?

yes

Copy link

linear bot commented Mar 18, 2024

Copy link

changeset-bot bot commented Mar 18, 2024

⚠️ No Changeset found

Latest commit: 094df52

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "rrdom" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "rrdom-nodejs" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "rrweb" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "rrweb-player" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "rrweb-snapshot" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "@rrweb/types" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "@rrweb/web-extension" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "rrvideo" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

Copy link

linear bot commented Apr 5, 2024

@Vadman97 Vadman97 force-pushed the hig-4412-visualize-pricing-utilization-over-time branch from 20905fa to e2e96db Compare April 8, 2024 23:19
@Vadman97 Vadman97 force-pushed the hig-4412-visualize-pricing-utilization-over-time branch from 9b8cc49 to b5ac7b1 Compare April 10, 2024 20:55
@Vadman97 Vadman97 requested review from a team and mayberryzane and removed request for a team April 15, 2024 15:34
@Vadman97 Vadman97 marked this pull request as ready for review April 15, 2024 15:34
@Vadman97 Vadman97 force-pushed the hig-4412-visualize-pricing-utilization-over-time branch from b5ac7b1 to fd7ac9a Compare April 15, 2024 15:54
Copy link
Contributor

@mayberryzane mayberryzane left a comment

Choose a reason for hiding this comment

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

looks good! if there are any perf issues, could also look into using trace_count_daily_mv and log_count_daily_mv, and maybe building similar materialized views for sessions / errors

backend/pricing/pricing.go Outdated Show resolved Hide resolved
@Vadman97 Vadman97 enabled auto-merge (squash) April 29, 2024 16:24
@Vadman97 Vadman97 merged commit e397885 into main Apr 29, 2024
13 checks passed
@Vadman97 Vadman97 deleted the hig-4412-visualize-pricing-utilization-over-time branch April 29, 2024 17:23
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.

None yet

2 participants