Skip to content

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.

  • The query runs inside Pulse, so it can only read what Pulse can read: SNOWFLAKE database 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.
  1. Open Monitoring » Monitor Library and select Build custom.
  2. 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.
  3. 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, boolean or list), 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.
  4. Filters. Set the Category, Monitor type, Environment, Domain, Audience and Severity. Rules can filter on all of these.
  5. Message. Enter the alert Subject and Body.
  6. Schedule & Response. Choose whether alerts from this template should Requires acknowledgement or Requires action by default.
  7. Select Create.

The template appears under the Custom pillar with a Custom badge.

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_altered
FROM my_db.information_schema.tables
WHERE 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.

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.

To change or remove a template, see Edit or delete a custom template. Monitors already installed from it keep their own settings.