Use Cloud Monitor's alert callback to push alert notifications to PagerDuty. PagerDuty can then manage incidents or forward alerts to other platforms.
Prerequisites
A PagerDuty account is required. Follow Create a Trial Account in Trial Account Onboarding.
Step 1: Get the callback URL
-
Create a service.
Follow Step 1: Create a Service and Step 2: Configure Inbound Integrations in Trial Account Onboarding.
On the Intelligent page, select Events API v1 or Events API v2.
-
Get the alert callback URL.
After creating the service, go to the Integrations section. For Events API v1, get the Integration Key and Integration URL. For Events API v2, get the Integration Key and Integration URL (Alert Events).
Format the alert callback (webhook) URL as follows:
{Integration URL}?integrationKey={Integration Key}. Example:https://events.pagerduty.com/v2/enqueue?integrationKey=0e44aed2509b4807c017605cbdd0****.
Step 2: Create an alert rule
Create an alert rule in the Cloud Monitor console, then configure and test the alert callback URL.
-
Log on to the Cloud Monitor console.
-
In the left-side navigation pane, choose .
-
On the Alert Rules page, click Create Alert Rule.
-
In the Create Alert Rule panel, configure the alert rule and test the alert callback URL.
NoteAlert rule parameters are described in Create an alert rule.
-
Enter the alert callback URL from Step 1 (for example,
https://events.pagerduty.com/v2/enqueue?integrationKey=0e44aed2509b4807c017605cbdd0****) and click Test. -
In the Webhook Test panel, keep the default values and click Test.
A successful test confirms the URL and network connection. PagerDuty will receive alert data when alert rules trigger.
-
-
Click Confirm.
Step 3: View alert data
When an alert rule triggers, view the alert data in the PagerDuty console.