Skip to main content
When an alert triggers, Palo Alto Networks Cortex XCOR sends a notification based on a notifier, which is an endpoint you specify that defines where to deliver active alerts and who to notify. When creating a notification policy, you select a notifier that specifies where to route the alert. A single alert results in one notification, which can be of either warn or critical severity. If there are multiple time series, the alert is de-duplicated and activated only once. However, the alert indicates which time series are violating the condition. Each notification policy triggers the sending of new notifications periodically, with a default period of 60 minutes. Special global notifiers receive and send notifications for every alert generated by Cortex XCOR. For Slack, PagerDuty, webhooks, VictorOps, or OpsGenie, the Cortex XCOR API uses inline destinations that reference notifier connections, or legacy notifier_slugs as in Create a notifier and View notifiers. You can’t set both on the same notifier list. For rules, migration steps, and field-level destination fields, see Notifier resource migration and Notifier connections and route destinations. Choose a notifier based on where you want to deliver alerts. Cortex XCOR supports the following notifiers:

Discard

Create a notifier to discard all notifications.

Email

Create an email notifier to send monitor alerts to a specific email address.

incident.io

Configure an alert source in incident.io and then create a webhook notifier in Cortex XCOR.

OpsGenie

Create a notifier in OpsGenie.

PagerDuty

Create a service in PagerDuty and then create the notifier in Cortex XCOR.

Slack

Generate an incoming webhook in Slack and then create a Slack notifier in Cortex XCOR.

VictorOps

Create an API key in VictorOps and then create a VictorOps notifier in Cortex XCOR.

Webhook

Create a webhook notifier with a URL that specifies the endpoint to send HTTP POST requests to.

Prerequisites

Some notifier configurations require specific information, such as a service key, an API key, or support intervention. The required information depends on the type of notifier that you’re creating. Refer to each notifier’s configuration to determine the necessary information.
Users can modify Terraform-managed resources only by using Terraform. Learn more.

View notifiers

You can view available notifiers in Cortex XCOR, or return a list of notifiers using Chronoctl. You can view notifiers created by Terraform in Cortex XCOR, but you can’t modify them.
To view a notifier:
  1. In the navigation menu, select Alerting > Notifiers.
  2. Search for the notifier you want to view and select it from the list.
The Edit Notifier page displays the notifier definition.If an entry has recent delivery failures, the list marks it with a Delivery failing badge. Hold the pointer over the badge to view the causes. Select the notifier to view banners with diagnostic messages, the number of affected monitors, and the failure duration. For remediation steps, see Identify failed notification delivery.

Create a notifier

Notifiers use a custom definition format in YAML. You can use Cortex XCOR, Chronoctl, or the Terraform provider to create and manage them. Notifiers support variables and templating. After creating a notifier, you can select it when defining a notification policy. The following steps apply to creating notifiers. See each notifier page for examples of creating that specific notifier type.
To create a notifier:
  1. In the navigation menu, select Alerting > Notifiers.
  2. Click Create notifier.
  3. Enter a descriptive name for the notifier.
  4. Select the type of notifier you want to create.
  5. Enter the required information for the notifier.
  6. Optional: Select Notify when resolved to send a resolved alert notification.
  7. Click Save.

Edit a notifier

Select from the following methods to edit a notifier.
Users can modify Terraform-managed resources only by using Terraform. Learn more.
To edit a notifier:
  1. In the navigation menu, select Alerting > Notifiers.
  2. Search for the notifier you want to view and select it from the list.
  3. In the Edit Notifier page, make changes to the notifier definition.
  4. Click Save.

Delete a notifier

Select from the following methods to delete a notifier.
Users can modify Terraform-managed resources only by using Terraform. Learn more.
To delete a notifier:
  1. In the navigation menu, select Alerting > Notifiers.
  2. Search for the notifier you want to delete and select it from the list.
  3. In the Edit Notifier page, click the delete icon .
  4. In the confirmation dialog, click Delete.

Notifications for alerts in third-party services

By default, Cortex XCOR sends a notification when an alert for a monitor resolves in third-party services, such as PagerDuty and VictorOps. You can choose to not send notifications by configuring the specified parameter in the Chronoctl YAML definition or Terraform resource for your notifier.
By default, Cortex XCOR doesn’t send notifications when an alert resolves. To send resolved notifications, select Notify when resolved when creating a notifier. For notifiers created using Chronoctl, Terraform, or the Cortex XCOR API, use the skip_resolved or send_resolved parameter.
To skip notifications when alerts for a monitor resolve, set the value of the skip_resolved property to true in your notifier definition.For example, the following definition skips sending notifications for resolved alerts for an Opsgenie notifier:
Chronoctl example

Use variables in notifiers

Notification content supports Go templates and Prometheus Alertmanager variables. Notifiers support many features and variables demonstrated in Alertmanager notification examples.

Available variables

You can reference Prometheus Alertmanager variables with the {{.VARIABLE_NAME }} syntax. Variable references work in the notifier’s definition and the notification’s contents. Notifiers can access monitor labels by using variables with the {{ .CommonLabels.LABEL }} pattern, and from the alerting metric with the {{ .Labels.LABEL }} pattern. In both patterns, replace LABEL with the label’s name. Similarly, you can reference monitor-defined annotations by using the {{ .CommonAnnotations.ANNOTATION }} pattern, replacing ANNOTATION with the monitor annotation’s name.
If your monitor query includes a label that generates different annotation values, then annotations won’t be included in CommonAnnotations or CommonLabels.
See the Alertmanager documentation for a reference list of alerting variables and templating functions. For a simpler way to customize the title and description of notifications using monitor-specific variables, see Notification templates.

Variable usage examples

This Slack notifier’s channel value takes advantage of monitor-defined labels to post a notification to a channel based on a triggering metric’s label:
Chronoctl example
You can also reference annotations defined in the monitor:
Chronoctl example
You can also use multiple labels in notifiers. The following example uses multiple labels for an OpsGenie notifier:
Chronoctl example
The priority in the outgoing notification is correctly templated with priority P2.

Global notifiers

Instead of using a notification policy to define when a notification is sent, global notifiers receive and send notifications for every alert generated across Cortex XCOR. Since these notifiers can generate a constant feed of many notifications, they must be created and managed exclusively by Cortex XCOR Support. You can’t edit or delete global notifiers on your own, and Cortex XCOR designates this with a banner in notifier editing interfaces. In the Notifiers list, Cortex XCOR designates global notifiers with a Global chip displayed with their type.