Skip to content
Last9
Book demo

Receive Alert Notifications via Pagerduty

Setup Pagerduty integration and receive alert notifications from Last9.

Getting started

Last9 can send alert notifications and resolutions to Pagerduty. This document lists the step by step instructions on how to setup Pagerduty integration with Last9 and start receiving alert notifications.

The Pagerduty Events V2 API is a highly reliable, highly available asynchronous API that ingests machine events from monitoring tools and other systems like Last9. Events sent to this API are ultimately routed to a PagerDuty service and processed.

Setting up an Events API V2 integration in Pagerduty

Create an integration on any PagerDuty service

Add new Pagerduty Integration

Select Events API V2 as the Integration Type.

Select the Events API Integration

Copy the integration key and keep it handy as we will use it while creating a notification channel in Last9.

Copy Events API Key

Setting up a notification channel in Last9

  1. In Notification Channels, add a new PagerDuty channel

Create Notification Channel

  1. Add the API key copied from Pagerduty integration in the Integration Key field

Create Pagerduty Channel

  1. By default it is not assigned to any alert group. You can assign it to the alert group either via IaC flow or manually once alert rules are added to an alert group.

Notification Channels

Assigning a notification channel to an alert group

First navigate to the alert group and click on Pagerduty icon.

Set notification channel

Select from the dropdown which Notification channel you want to select from the dropdown.

Pagerduty channel


Notification Payload

Use these JSON fields for custom incident details, automation, alert enrichment, or integrating with other tools.

PagerDuty fieldTypeDescription
payloadobject
payload.summarystringTitle for the incident
payload.timestamptimestampThe ending time of this alert, in ISO 8601 format
payload.severitystringcritical / warning for alerts marked as breach/threat in alert rule
payload.sourcestringDedup key for the incident
payload.componentstringEmpty
payload.groupstringDedup key for the incident
payload.classstringAlert Rule Type
payload.custom_detailsobjectDescribed below
routing_keystringPagerDuty integration key
event_actionstring’trigger’ for active notifications, ‘resolve’ for resolved notifications
dedup_keystringDedup key for the incident
clientstring”Last9 Dashboard”
client_urlstringLink to health dashboard for the alert in Last9
linksarray of objectsEmpty array
imagesarray of objectsEmpty array

Custom Details

  • alert_condition - Condition set on alert. Static alerts, it is of the format.expr > 10 based on the threshold configured. For pattern-based alerts, it is of the format algo_type(tunable, expr). For example, for a high spike alert set with tunable 3, this would be high_spike(3, expr)
  • algo_type - Type of alert (static_threshold, increasing_changepoint etc)
  • client_url - Link to the health dashboard for this alert on Last9
  • description - Description of the alert. If a description is provided while configuring the rule, it appears here. Otherwise, a default description based on the algorithm, indicator, and entity is shown
  • start - Starting time of this alert, in ISO 8601 format
  • end- Ending time of this alert, in ISO 8601 format
  • expression - Name of the indicator
  • entity_name - Entity name
  • entity_type - Entity type
  • entity_team - Entity team. Is None if not assigned
  • entity_tier - Entity tier. Is None if not assigned
  • entity_workspace - Entity workspace. Is None if not assigned
  • entity_namespace - Entity namespace. Is None if not assigned
  • severity - Severity of the alert (breach/ threat)
  • notification_call - Whether this alert is sent for the first time or repeated (first/ repeat)
  • runbook - Link to the runbook for this alert (has to be configured while setting up alert). This key is omitted if the runbook isn’t configured
  • If the entity under alert has tags associated with it, they are included in custom details as tag_<tag_name> = true
  • time_in_alert - Duration for which this alert was observed. E.g., 8 in 10 minutes.

Troubleshooting

Please get in touch with us on Discord or Email if you have any questions.