SNOWFLAKE.ORGANIZATION_USAGE.WAREHOUSE_METERING_HISTORY- Returns hourly credit usage for both Virtual Warehouse credit usage and Cloud Services credit usage per warehouse, for all warehouses in your account. Data is retained for one year.
SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY- Query history with various dimensions, including total elapsed time, warehouse used, data bytes scanned, etc. Data is retained for one year.
SNOWFLAKE.ORGANIZATION_USAGE.USAGE_IN_CURRENCY_DAILY- Returns the daily credit usage and usage in currency format for an organization.
As a best practice, it is suggested you create a schema specifically for the
vantage user. Note, however, that this is optional. See the steps below for details on how to create this schema.Connect Your Snowflake Account
Prerequisites
Create a free Vantage account, then follow the steps below to integrate Snowflake costs.Snowflake IP Allowed List
If your Snowflake cluster uses an IP allow list for access control, you will need to add the following IPs to that allowed list:Snowflake Schema for Vantage
After creating the below schema, you can add the required views to that schema and grant thevantage user access to the schema.
The below commands are based on the Snowflake documentation.
1
From the top navigation in Vantage, click Settings.
2
On the left navigation, select Integrations and select Snowflake.
3
The Snowflake integrations page is displayed. Ensure you are on the Connect tab.
4
Copy the code that’s provided under Create Vantage User and Role to Snowflake. This SQL creates a user named
vantage, a role named vantage, and a warehouse named vantage. It also grants the necessary permissions.Vantage automatically generates an RSA public key for you to use when creating the Vantage user and role. You need to copy the code directly from the Vantage integration page to add the RSA key.
Sample of code. Copy directly from Vantage console to get RSA key.
5
Copy the next code block to set up the Vantage-specific schema to read billing and usage data from your account.
6
Test your setup in Snowflake.
7
At the bottom of the Vantage console Snowflake integration page, click Add Connection.
8
Add the following information to the form:
- Server URL: In the format
<account_identifier>.<region>.snowflakecomputing.com. - Database: The name of the database the usage views are in (e.g.,
vantage). - Schema: The name of the schema the usage views are in (e.g.,
public). - Username set for the
vantageuser.
9
Click Connect Account.
As soon as costs are processed, they will be available on your All Resources Cost Report. If you decide to remove your Snowflake integration from Vantage, all costs associated with your Snowflake integration will be removed from the Vantage console.
Next Steps - Manage Workspace Access
Once the import is complete and the integration status changes to Stable, you can select which workspaces this integration is associated with. See the Workspaces documentation for information.Data Refresh
See the provider data refresh documentation for information on when data for each provider refreshes in Vantage.Troubleshoot Snowflake Errors
Common integration errors are described below.query_history column count mismatch
Snowflake occasionally makes changes to the queries/tables that get used for cost and usage attribution, causing the views in Vantage to then be based on an old query. You may see an error in the Vantage console, similar to the below error:Vantage views in Snowflake and ensure the vantage user is granted permission on those views.
After you’ve completed the below steps, contact [email protected] to reimport your Snowflake data.
JWT Token or Public Key Mismatch Error
If you encounter errors such asINCOMING_REQUEST_BLOCKED or JWT_TOKEN_INVALID_PUBLIC_KEY_FINGERPRINT_MISMATCH, this typically indicates that the RSA public key configured in Snowflake does not match the public key generated by Vantage.
This can occur if:
- The public key was manually modified in Snowflake
- The integration was recreated in Vantage, generating a new public key
- The public key was incorrectly copied during initial setup
1
Navigate to your Snowflake integration in Vantage:
- From the top navigation, click Settings
- On the left navigation, select Integrations and select Snowflake
- Click on your Snowflake connection to open the Manage Connection page
2
Copy the Primary Public Key from the Vantage console. This is the RSA public key that Vantage generated for your integration.
3
In Snowflake, update the Replace
vantage user’s RSA public key to match the one from Vantage:{YOUR_RSA_KEY_GENERATED_BY_VANTAGE} with the exact public key copied from the Vantage console.4
Verify the connection is working. The error should be resolved once the public keys match.
The public key must match exactly between Vantage and Snowflake. Ensure you copy the entire key from the Vantage console without any modifications or extra characters.
Snowflake Reporting Dimensions
On Snowflake Cost Reports, you can filter across several dimensions:- Account (account name)
- Category (e.g., Data Cloud Data Transfer)
- Metadata (e.g.,
environment is staging) - Region (e.g., AWS Eu West 1)
- Organization (organization name)
- Service (e.g., Data Cloud)
- Tag
- Charge Type (e.g., Usage)