This guide gives instructions on how to enable Snowflake for Google Data Studio.
Quick links to specific sections:
Data Source Access Requirements:
Data Source Access Requirements using oAuth
To enable Supermetrics for Snowflake, you must have a valid ACCOUNTADMIN and you must create a Client ID and Client Secret. To learn more, see How to create an OAuth Client ID and Client Secret. In addition to Client ID and Client Secret, you need hostname, warehouse name, database name and database schema to establish the connection.
Data Source Access Requirements using username and password
To establish a connection using database username and secret key you will need the username, password, hostname, warehouse name, database name and database schema.
To enable Supermetrics for Snowflake, your database needs to accept connections from the following IP: 18.104.22.168
How to create an OAuth Client ID & Client Secret:
To connect Supermetrics to Snowflake, you will first need the create the following parameters:
Client ID, Client Secret, Warehouse, Database name, and Database schema.
For this, an ACCOUNTADMIN role and the security integration steps are required. Please do the following:
1. Login to Snowflake and go to the user icon. Click on change and select the ACCOUNTADMIN role.
2. Run the following two commands in a worksheet:
CREATE SECURITY INTEGRATION
TYPE = OAUTH
ENABLED = TRUE
OAUTH_CLIENT = CUSTOM
OAUTH_CLIENT_TYPE = 'CONFIDENTIAL'
OAUTH_REDIRECT_URI = 'https://supermetrics.com/login-complete'
SELECT SYSTEM$SHOW_OAUTH_CLIENT_SECRETS('Supermetrics App');
The output from these queries will look as below:
4. Click on the output row 1.
5. A popup will open with 3 key-value pairs in JSON format. You will need to copy the values after the keys “OAUTH_CLIENT_ID” and
You have created your Client ID and Client Secret.
- Hostname can be found in the URL when you are logged in to Snowflake. It should end in snowflakecomputing.com.
Warehouse, Database name, and Database schema can be found in Snowflake at the top right of the query editor.
You have completed all the steps for security integration.
To authenticate Snowflake in Google Data Studio, please do the following steps:
1. Click on add data.
2. Search for Snowflake by Supermetrics and click on it.
3. Click on Authorize. If you wish to learn more about data security and data privacy, please see this .
4. An automatic popup will open, choose a Google account to sign in.
5. Click on Allow. If you wish to learn more about data security and data privacy, please see this .
6. Click one last time on Authorize. If you wish to learn more about data security and data privacy, please see this .
7. You have two options to authenticate the data source.
You can connect with oAuth or with API username and secret key.
- One option is to connect with OAuth login. To do so, insert the Client ID, Client Secret, Warehouse, Database name, and Database schema and click on start. If you have not created those parameters, please see How to create an OAuth Client ID and Client Secret.
- Another option is to connect with API username and secret key. To do so, insert the Database username, Database password, Hostname, Warehouse, Database name, Database schema, and click on start.
4. Click on allow. If you wish to learn more about data security and data privacy, please see this page.
5. Insert your username and password and click on log in.
6. Click on the link below to authenticate your user account.
With this link, you can also add or delete users.
7. Click on OK, let's continue to continue with that user. If you wish to log in with a different user, click on Add Snowflake user account. Click on remove to remove the user account.
- If your Data Studio account belongs to multiple teams, you will see the option to select the team you wish to use. Go to the link below and select the team name with your license to proceed. (If you only belong to one team, skip to the next step).
7. Choose query type and click on next.
Please note that you can choose between two queries:
- Database table based report: where you select a table from a schema and you can use the columns of that table as the fields in Data Studio.
- Database based report: build a SQL query that will be used to create report fields. With the SQL query, you can combine data from several tables and even from tables that are in different schemas.
8. If you choose as query type database table based report, select database table. All the other filters are optional.
- The field "Order field/column" defines the column name you want to use to sort your table/data by. This is important in case your snowflake table has more rows than you intend on selecting. This field only affects database table-based reports.
9. If you choose as query type database query report, select DB connection. All the other filters are optional.
10. Click on add on the bottom right side to continue.
11. As a final step, click on add to report.
To re-authenticate Snowflake in Data Studio, please go to this guide.