Project Configuration

  1. To configure the connection to snowflake, you need the locator url from SnowFlake. The url can be obtained by going to ‘Admin’ -> ‘Accounts’
  2. Copy the url for the Locator (can be copied by hovering over it). This will be used when creating project in InsightFinder

Project Creation

  • Go to ‘Settings’ -> ‘System Settings’ -> ‘Add New Project’ -> ‘All Categories’ . Search for and/or select “Snowflake performance monitoring” from the list
  • You will be redirected to the SnowFlake Project Creation Page in InsightFinder

Common Settings

  • Snowflake Username: username for the snowflake account
  • Database Address: The url copied from Snowflake Locator in Project Configuration from above
  • Database Password: The password for the snowflake account/database
  • Warehouse: COMPUTE_WH (Can use other warehouse if wanted)
  • Data Type: Metric (Default prefilled, leave it as it is)
  • Sampling Interval: 5 min (Default, can change is according to requirements)
    • Project Name: Enter the desired project name
    • System Name: Enter/Choose the system for which this project should be part of

Query Settings

Snowflake Self Monitoring

For monitoring Snowflake’s performance

  • Database Name: SNOWFLAKE (database name needs to be this since we want to monitor snowflake itself)
  • Query: Since we’re monitoring snowflake, we’ll be using the following queries:

select NAME as instance_name, START_TIME AS time_stamp[yyyy-MM-dd HH:mm:ss], CREDITS_USED_COMPUTE, CREDITS_USED_CLOUD_SERVICES, CREDITS_USED from ACCOUNT_USAGE.METERING_HISTORY;
select WAREHOUSE_NAME as instance_name, START_TIME AS time_stamp[yyyy-MM-dd HH:mm:ss], AVG_RUNNING, AVG_QUEUED_LOAD, AVG_QUEUED_PROVISIONING, AVG_BLOCKED from ACCOUNT_USAGE.WAREHOUSE_LOAD_HISTORY;

General Metric Monitoring

If you want to stream monitoring data from other systems that are stored in SnowFlake, you can write the query to fetch them from SnowFlake and forward to InsightFinder.

The requirements to setup the query are given below:

  • Database Name: Name of the database where the metric data is stored.
  • Query: Can write any query wanted that will return valid timestamp(s), instance name(s) and metrics (numerical values). Few important things to note:
    • The column being used as the instance name needs to be returned as ‘instance_name’
    • Timestamp values need to be reformatted to ‘yyyy-MM-dd HH:mm:ss’ format and renamed to ‘time_stamp’
    • At Least one value returned from query needs to be a metric value (apart from timestamp and instance names)
    • Need to provide schema as well as table when writing query
      • Example Query: 

select NAME as instance_name, START_TIME AS time_stamp[yyyy-MM-dd HH:mm:ss], CREDITS_USED_COMPUTE, CREDITS_USED_CLOUD_SERVICES, CREDITS_USED from ACCOUNT_USAGE.METERING_HISTORY;

Finish Project Creation

  • Click on ‘Finish’ to create the project once all the above settings are filled. You will be redirected to the project settings page automatically once the project is created. 

Check Data

  1. Once the project is created and has collected data, the data can be viewed by going to the line chart page for the respective project