What Is Resource Monitor in Snowflake
What Is Resource Monitor in Snowflake
Snowflake
Summary
The amount of credits used is determined on the size and duration of the
warehouse.
Only account administrators (i.e., users with the ACCOUNTADMIN role) are
able to establish resource monitors, but account administrators can decide to
allow users with other privileges to view and change resource monitors using
SQL.
The power of Snowflake Information Schema is not well known and the
usefulness it brings to data developers and data ops engineers are not
discussed anywhere. (Watch complete video )
You can watch the complete hands on video tutorial on resource monitor
SQL For Create Warehouse Level
Resource Monitor
1 CREATE RESOURCE MONITOR "RM_1CREDIT_DAILY_WH_LEVEL" WITH CREDIT_QUOTA = 1
2 TRIGGERS
3 ON 95 PERCENT DO SUSPEND
4 ON 100 PERCENT DO SUSPEND_IMMEDIATE
5 ON 90 PERCENT DO NOTIFY
6 ON 85 PERCENT DO NOTIFY
7 ON 80 PERCENT DO NOTIFY
8 ON 75 PERCENT DO NOTIFY
9 ON 70 PERCENT DO NOTIFY;
10
11 ALTER WAREHOUSE "COMPUTE_WH" SET RESOURCE_MONITOR =
12 "RM_1CREDIT_DAILY_WH_LEVEL";
13