
Introduction to the course
A prelude to the subsequent two lectures which follow
Snowsight - getting started part 1
Snowsight - getting started part 2
In this lecture we show a query to list all privileges in your account for a particular database
Basic role related queries
A query that shows all privileges granted to all roles, with column explanations
A query that generates all roles and privileges granted to users. But, not quite right.
A little more thorough query to generate roles and privileges granted to users using recursion
In this lecture we show several different ways of generating user information
Queries to demonstrate how to find users who have never logged into their account and "stale" users
In this lecture we demonstrate some queries to analyze user login history and failure rates
In this lecture we create some very useful queries for monitoring various warehouse events
A query to determine warehouse load on one or more warehouses
In this lecture we discuss several queries that calculate warehouse credits consumed
More queries that calculate warehouse credits consumed
A query to monitor data transfers from one cloud provider to another or to/from the same provider but in a different geographical region.
A query to monitor ingestion activity occurring when using COPY INTO and Snowpipe
A couple queries that deal with finding columns in any database and deleted columns
Queries that deal with finding tables in any database and deleted tables
Queries that deal with listing databases and deleted databases
A query to identify queries that are currently executing and retrieve those that have exceeded a certain amount of execution time
A query to identify the longest running queries
In this lecture we show a query that can find user queries that scan all or certain percentage of partitions in a table.
Here we show some ways to show number of queries executed per month and week
A query to find any blocked query, then show a list of active transactions and a way to kill a transaction
Practice #1
Practice 2
Practice 3
Practice 4
Practice 5
Practice 6
Practice 7
Snowflake was written from the ground up to be a novel and advanced cloud data platform provided as Software-as-a-Service (SaaS). Snowflake enables data storage, processing, and analytic solutions that are faster, easier to use, and far more flexible than traditional offerings.
One of the most important activities any Snowflake administrator has to perform, or any developer who has been given the responsibility of monitoring the Snowflake environment, is knowing how to actually monitor Snowflake, and what support is available in the Snowflake SQL language to monitor the environment.
Of course, some aspects of Snowflake can be monitored via the Web UI. But there is a whole host of views and table functions available to monitor your entire Snowflake account. That is the focus of this course.
This course demonstrates how to create queries (several dozen in total) to monitor all the major areas of Snowflake including role-based access, users and logins, virtual warehouse usage and credit consumption and many miscellaneous queries to monitor Snowflake activity.
When you complete this course you will have a suite of queries to monitor virtual warehouse usage, credit spending, monitoring ingestion with COPY INTO and Snowpipe, users and logins, long running queries, blocked queries and much more.