Custom monitors
Custom monitors need Premium. Every business has checks no catalogue can anticipate: a table that must load by 07:00, a reconciliation that must balance, a role that must never own a schema. With custom monitors you write the SQL once as a custom template, then install it as a monitor that runs on a schedule, alerts at your chosen severity and routes through the Rules Engine like any other.
Before you start
Section titled “Before you start”- The query runs inside Pulse, so it can only read what Pulse can read:
SNOWFLAKEdatabase views granted to the app and the databases you have registered. - Decide what should make the monitor fire. Most custom checks return the problem rows, and fire when the row count is greater than 0.
Create a custom template
Section titled “Create a custom template”- Open Monitoring » Monitor Library and select Build custom.
- Overview. Enter a Name (required) and Description. Add Who needs this, When it fires and Remediation so the people who receive the alert know what to do.
- Arguments & Conditions.
- Write the query in SQL.
- Select Add parameter for each value you want to set per install. Give it a name, a type (
string,number,float,booleanorlist), a description and a default. List parameters take a set of options, and you choose which are selected by default. - Choose the Condition and Threshold. Value conditions (for example Value greater than) compare the first column of the first row. Row count conditions (for example Row count greater than) compare how many rows the query returns.
- Select Test query to run it with the default values. Pulse shows up to 50 of the rows returned. A query that returns no rows would not fire a row-count monitor.
- Filters. Set the Category, Monitor type, Environment, Domain, Audience and Severity. Rules can filter on all of these.
- Message. Enter the alert Subject and Body.
- Schedule & Response. Choose whether alerts from this template should Requires acknowledgement or Requires action by default.
- Select Create.
The template appears under the Custom pillar with a Custom badge.
Use parameters in the query
Section titled “Use parameters in the query”Refer to a parameter in the SQL as {{ parameter_name }}. When the monitor runs, Pulse replaces it with the value saved for that monitor. For example:
SELECT table_name, last_alteredFROM my_db.information_schema.tablesWHERE table_schema = '{{ schema_name }}' AND last_altered < DATEADD(hour, -{{ max_age_hours }}, CURRENT_TIMESTAMP())Each install can then use its own schema and age limit without changing the SQL.
Install the monitor
Section titled “Install the monitor”Select Install on your template in the Custom pillar and follow the same steps as for a catalogue template: set parameter values, condition, severity, tags, message and schedule. See Install a monitor. You can install a template several times with different values.
Edit or delete a template
Section titled “Edit or delete a template”To change or remove a template, see Edit or delete a custom template. Monitors already installed from it keep their own settings.

