Skip to main content

Notification Policies

Notification policies let you route alerts to different notifiers based on severity levels. Each policy can be configured with specific notifiers for both Warning and Critical severity levels.

With notification policies, you can:

  • Create team-specific policies to route team alerts to designated notifiers
  • Set up deployment-specific policies to route alerts from different deployments (e.g. dev, staging, production) to appropriate notifiers

Create a Notification Policy​

  1. Navigate to Alerts (Bell icon in sidebar) → click the ellipsis (...) → select Notification Policies
  2. Click the + icon.
  3. Fill in the following fields:
    • Name: A descriptive name for your notification policy
    • Critical: (Optional) Select notifiers to receive alerts with Critical severity
    • Warning: (Optional) Select notifiers to receive alerts with Warning severity
    • Global: Enable this toggle to apply the policy to all monitors in addition to their individual notification policies. This is particularly useful when migrating from another system and you want to verify Oodle alerts while maintaining your existing alert system. By default, this toggle is OFF.
  4. Click Save to create the notification policy
note

You can also create notification policies directly from the monitor create/edit page by clicking the Add Notification button.

Notification Policies

Route Alerts by Labels​

A policy can also send alerts to other notifiers by their labels. Add Routes to the policy. Use routes when one policy serves many teams or services, for example to page the team that owns a service and post its warnings to the team channel.

How routes work:

  • Each route has label conditions. All of them must match. A route without conditions matches all alerts.
  • Routes are checked from top to bottom. The first route that matches gets the alert.
  • Turn on Continue to the next routes to also check the routes after a match. Use it to send one alert to more than one place, such as a pager and a chat channel.
  • A route can have child routes. They are checked when the route matches. Up to 4 levels of routes are allowed.
  • A route sends to its own notifiers, for all severities or for each severity. A route without notifiers uses the notifiers of its parent route, or of the policy. Each route must get notifiers in one of these ways, or the policy cannot be saved.
  • A route can set its own Group by, Group wait, Group interval and Repeat interval, such as 4h for a pager and 1d for a chat channel. When a route does not set them, it uses the values of its parent, and at the top level the values of the monitor.
  • Alerts that match no route go to the notifiers of the policy. If the policy has no notifiers for that severity, those alerts are not sent.

Routes match the labels of the alert: the labels of the monitor and the labels of the query result. A global policy cannot have routes.

Example policy with routes, as you send it to the API or to oodle notification-policies create -f:

name: teams
notifiers:
critical: [<fallback notifier id>]
routes:
- matchers:
- {type: 0, name: team, value: core} # type 0 is =, 1 is !=, 2 is =~, 3 is !~
- {type: 0, name: severity, value: critical}
notifiers: {any: [<pager notifier id>]}
continue: true
repeat_interval: 4h
- matchers:
- {type: 0, name: team, value: core}
notifiers: {any: [<chat notifier id>]}
repeat_interval: 1d

In Terraform, use the routes attribute of the oodle_notification_policy resource.

note

There is no default policy for all monitors. A monitor uses a policy only when you select it on the monitor. To route the alerts of many monitors in the same way, select the same policy on each of them.

Use a Notification Policy​

After creating a notification policy, you can attach it to any monitor during creation or editing. Once attached, the monitor's alerts will be automatically routed to the notifiers specified in the policy.


Support

If you need assistance or have any questions, please reach out to us through: