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

Add docs/blurb about accuracy against Snowflake bill #50

Open
ian-whitestone opened this issue Jan 4, 2023 · 0 comments
Open

Add docs/blurb about accuracy against Snowflake bill #50

ian-whitestone opened this issue Jan 4, 2023 · 0 comments
Assignees

Comments

@ian-whitestone
Copy link
Contributor

ian-whitestone commented Jan 4, 2023

## Accuracy relative to your Snowflake bill

The `daily_spend` model has been reconciled against multiple Snowflake accounts and lines up exactly (with the exception of [some rounding errors](https://github.com/get-select/dbt-snowflake-monitoring/issues/25), to be fixed in an upcoming release).

If you'd like to validate it for yourself, you can run the following queries:

```sql
-- model
select
    date,
    service,
    sum(spend) as spend
from daily_spend
group by 1,2
order by date desc, spend desc
;

-- actual
select
    usage_date as date,
    usage_type as service,
    usage_in_currency as spend
from snowflake.organization_usage.usage_in_currency_daily
where account_locator='<your_account_locator>' -- Not required if you only have 1 account
order by date desc, spend desc
;
@ian-whitestone ian-whitestone self-assigned this Jan 4, 2023
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

No branches or pull requests

1 participant