-
Notifications
You must be signed in to change notification settings - Fork 174
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
docs: docs for dwh cost estimates and savings #3554
Open
caiters
wants to merge
7
commits into
main
Choose a base branch
from
docs/costs-savings
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+60
−1
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5f7a47d
docs: docs for dwh cost estimates and savings
caiters ee8a5b8
Docs: cloud costs savings edits (#3564)
treysp 20fefd2
Update docs/cloud/features/costs_savings.md
treysp a59c5c3
Update docs/cloud/features/costs_savings.md
treysp def690b
Update docs/cloud/features/costs_savings.md
treysp 92b06a4
update per PR feedback
caiters d3feace
costs images
caiters File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Data Warehouse Costs and Savings with Tobiko | ||
|
||
Cloud data warehouses can be expensive, and finance departments are paying attention. When they come asking about your cloud budget, the best preparation is a granular understanding of how your project's data pipelines map to those costs. | ||
|
||
Cloud warehouse costs are determined by how much computation occurs. Clouds report computation/cost for each executed query, but it is challenging to align every query with a specific model in your project. | ||
|
||
Tobiko Cloud solves this problem for you. It tracks data warehouse cost estimates per model for BigQuery and Snowflake projects that use a supported pricing plan. | ||
|
||
This granular cost information allows you to directly explain/justify your cloud warehouse spend. It also uncovers the models that could most benefit from efficiency improvements. | ||
|
||
Beyond tracking your warehouse costs, Tobiko Cloud estimates how much money it saved you! Its advanced column-level impact analysis saves you even more money than open-source SQLMesh. | ||
|
||
## Supported Data Warehouse Pricing Plans | ||
|
||
Tobiko Cloud supports these cloud pricing plans: | ||
|
||
- BigQuery [On Demand](https://cloud.google.com/bigquery/pricing#on_demand_pricing) | ||
- Snowflake [Credits](https://docs.snowflake.com/en/user-guide/cost-understanding-compute#label-what-are-credits) | ||
|
||
## Data Warehouse Cost Configuration | ||
|
||
Configure Tobiko Cloud to show cost information by navigating to the Settings page. | ||
|
||
![Image highlighting location of the Settings link in the left site navigation](./costs_savings/costs-navigation.png) | ||
|
||
On the General settings page (1), select your pricing plan (2), enter your costs, and then save (3). | ||
|
||
![Annotated image showing locations of the general settings link, pricing plan form fields, and save button](./costs_savings/costs-steps.png) | ||
|
||
For the BigQuery On Demand plan, we supply BigQuery's default cost per terabyte processed of $6.25: | ||
![Costs form for BigQuery On-Demand](./costs_savings/costs-bigquery-on-demand.png) | ||
|
||
For the Snowflake Credits plan, we supply Snowflake's default cost per credit of $3.00: | ||
![Costs form for Snowflake Credits](./costs_savings/costs-snowflake-credits.png) | ||
|
||
If your organization has negotiated a different cost, please enter that cost into the "Cost per" field instead so your organization's data warehouse cost estimates will be more accurate. | ||
|
||
## Where to find cost and savings estimates information | ||
|
||
Estimated costs and savings are displayed on the Tobiko Cloud homepage, production environment page, runs and plans pages, and individual model pages. | ||
|
||
Cost information on each page will look similar to: | ||
|
||
![Example of costs and savings data as seen on the Tobiko Cloud homepage](./costs_savings/costs-example.png) | ||
|
||
## Savings Categories | ||
|
||
When calculating your data warehouse costs, Tobiko Cloud also estimates how much money it saved you! | ||
|
||
Cost savings are broken up into three main categories: | ||
caiters marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- **Prevented Reruns**: If SQLMesh has already run an execution for a change in one environment, we won't need to rerun it in another environment (such as when a model change is backfilled on a development environment and then applied to prod). | ||
- **Unaffected Downstream**: Because SQLMesh understands SQL, we know if a downstream model is not affected by an upstream change and can avoid re-execution. | ||
- **Virtual Environments**: Using the Virtual data environments feature means new environments can be created without backfilling models within the new environment. | ||
|
||
### Where to find cost savings information | ||
|
||
Cost savings are shown in most of the places data warehouse costs are displayed. You can find how much Tobiko Cloud has saved you by viewing the homepage, production environment page, or individual model pages. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are default pricing plans? Include configs in writing or screenshots for those
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I need a little clarification on this one - are you asking what the default values are for the pricing plans, or just what the form looks like? I could update the
costs-steps.png
file to include the full form with either bigquery or snowflake selected that would show the "cost per TB" or "cost per credit" field as well, or is there something else you are looking for?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"full form with either bigquery or snowflake selected that would show the "cost per TB" or "cost per credit" field as well"
Can you include screenshots of both and explicitly write out the defaults? Ex: BigQuery charges $6.25 per TB processed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this along the lines of what you were thinking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I worry the code and documentation will get out of sync. It will be hard to remember the docs need to be updated if the defaults change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, these are the screenshots I was looking for. And @crericha fair point, so @caiters can you add a note along the lines of "These are the current cost defaults at the time of setup and update in Tobiko Cloud as warehouse cost defaults change"