Google Cloud Monitoring
Connect Google Cloud Monitoring to AlertOps with a webhook notification channel so incidents automatically create, escalate, and close alerts.
Google Cloud Monitoring - Overview
Google Cloud Monitoring (formerly Stackdriver) is Google Cloud's native observability service. It collects metrics, logs, uptime checks, and events from Google Cloud resources and applications, and evaluates them against alerting policies to open incidents when conditions are met. The AlertOps integration uses a Google Cloud Monitoring Webhook notification channel to forward incident events to AlertOps, enabling automated alert creation, escalations, and notifications to the appropriate on-call responders through SMS, voice calls, push notifications, and email. When the Google Cloud Monitoring incident closes, the closing event automatically closes the corresponding AlertOps alert.
Prerequisites
|
📌 Before You Begin
|
Configuration Steps Part A: In AlertOps - Generate the Inbound Webhook URL
- In AlertOps, navigate to Services + Integrations → Inbound Integrations.
- Use the search bar to search for Google Cloud Monitoring and select the integration template.
- Enter an integration name, then click Add Integration.
- Select an Escalation Rule to determine the escalation policy for incoming alerts.
- In the Who section, enter the names of the recipient group(s) and recipient user(s) who should receive the alerts.
- Click Save.
- Click Copy next to the API Endpoint at the top of the integration page to copy the unique inbound webhook URL. You will need this URL when configuring Google Cloud Monitoring.
Keep this URL available for the next part of the setup. It is the endpoint to which Google Cloud Monitoring sends incident notifications.
The template comes preconfigured in the What section: Alert Source ID is mapped to <incident^incident_id>, the status field is mapped to <incident^state>, alerts open when the state contains OPEN or open, and alerts close when it contains CLOSE, Closed, or closed.

Google Cloud Monitoring inbound integration in AlertOps: API Endpoint and open/close conditions
Part B: In Google Cloud Monitoring - Configure Google Cloud Monitoring to Send Alerts to AlertOps
Step 1: Create the Webhook Notification Channel
- Sign in to the Google Cloud console and select the project you want to monitor.
- Navigate to Monitoring → Alerting, then click Edit notification channels to open the Notification channels page.
- Scroll to the Webhooks section and click Add New.
- In the Add Webhook dialog, configure the following:
- Endpoint URL: Paste the AlertOps API Endpoint URL copied in Part A.
- Display Name: Enter a descriptive name, for example AlertOps.
- Use HTTP Basic Auth: Leave unchecked. The AlertOps endpoint URL contains a unique key and does not require Basic Auth.
- Click Test Connection to send a sample notification to AlertOps, then click Save.
- Confirm that the AlertOps webhook now appears in the Webhooks list.

Google Cloud Monitoring Notification channels page

Add Webhook dialog with the AlertOps endpoint URL

AlertOps webhook listed under Webhooks notification channels
Step 2: Attach the Notification Channel to an Alerting Policy
- In Monitoring → Alerting, click Create policy to create a new alerting policy, or edit an existing one.
- Add and configure the alert condition and trigger as required, then proceed to Notifications and name.
- Under Configure notifications, make sure Use notification channel is turned on.
- In Notification Channels, select the AlertOps webhook created in Step 1.
- Optionally, enter a Notification subject line. This value is sent in the payload as incident.documentation.subject.
- Select Notify on alert closure. This is required for Google Cloud Monitoring to send the closing event that closes the AlertOps alert.
- Optionally, set an Alert autoclose duration to close incidents automatically when data is absent.
- Name the alerting policy, review it under Review alert, and click Create policy (or Save policy).

Alerting policy notifications: AlertOps channel selected and Notify on alert closure enabled
Key Data Fields Required for Mapping
|
AlertOps Alert Field |
Google Cloud Monitoring Source Field |
Purpose and behavior |
|
Alert Source ID |
<incident^incident_id> |
Uniquely identifies the Google Cloud Monitoring incident for deduplication and correlation of repeated notifications. |
|
Source Status |
<incident^state> |
Determines whether to open or close the AlertOps alert. A value of open opens the alert; closed closes it. |
|
Source URL |
<incident^url> |
Links to the incident in the Google Cloud console. |
|
Subject |
<incident^summary> |
Identifies the incident and the alerting condition that triggered it. |
|
Email / Push Notification SMS / Voice Notification |
<incident^summary> <incident^condition_name> |
Provides the alert summary and the triggering condition in responder notifications. |
JSON Payload to Use Inside AlertOps Integration
Google Cloud Monitoring generates the JSON payload automatically using the webhook schema (version 1.2). All incident details are nested under the incident object. The following example reflects the actual payload structure sent by the Test Connection option; real incidents send version 1.2 with the same structure.
|
{ "version": "test", "incident": { "incident_id": "12345", "scoping_project_id": "12345", "scoping_project_number": 12345, "url": "http://www.example.com", "started_at": 0, "ended_at": 0, "state": "open", "summary": "Test Incident", "apigee_url": "http://www.example.com", "observed_value": "1.0", "resource": { "type": "example_resource", "labels": { "example": "label" } }, "resource_type_display_name": "Example Resource Type", "resource_id": "12345", "resource_display_name": "Example Resource", "resource_name": "projects/12345/example_resources/12345", "metric": { "type": "test.googleapis.com/metric", "displayName": "Test Metric", "labels": { "example": "label" } }, "metadata": { "system_labels": { "example": "label" }, "user_labels": { "example": "label" } }, "policy_name": "projects/12345/alertPolicies/12345", "policy_user_labels": { "example": "label" }, "documentation": { "content": "TEST ALERT", "mime_type": "text/markdown", "subject": "ALERT - No severity", "links": [ { "displayName": "Playbook", "url": "http://www.example.com" } ] }, "condition": { "name": "projects/12345/alertPolicies/12345/conditions/12345", "displayName": "Example condition", "conditionThreshold": { "filter": "metric.type=test.googleapis.com/metric", "comparison": "COMPARISON_GT", "thresholdValue": 0.5, "duration": "0s", "trigger": { "count": 1 } } }, "condition_name": "Example condition", "threshold_value": "0.5" } } |
How to Test the Integration
- In Google Cloud Monitoring, trigger an alerting policy that uses the AlertOps notification channel, for example by temporarily lowering the condition threshold so it is met.
- In AlertOps, navigate to Services + Integrations → Inbound Log.
- Locate the incoming Google Cloud Monitoring message and inspect the received payload.
- Verify that the message is successfully mapped and that an AlertOps alert is created and routed according to the configured escalation rule and recipients.
- To test resolution, restore the condition threshold so the incident closes and Google Cloud Monitoring sends the closing event (incident.state = closed).
- Confirm that AlertOps receives the closing event and closes the corresponding alert.
Note: Test Connection in the Add Webhook dialog sends a sample payload (version test, incident_id 12345, state open). Use it to confirm connectivity; it creates a test alert that you can close manually. Use a real alerting policy to validate deduplication and auto-close.
Troubleshooting tip: If the message appears in the Inbound Log but no alert is created, inspect the mapping status and payload. A successfully received message does not necessarily mean an alert was created. You can refer to this article: Inbound Log - Mapping Status.
Alerts not closing: Confirm that Notify on alert closure is selected in the alerting policy, and that the AlertOps Close alert when condition is set to SourceStatus Contains Any CLOSE / Closed / closed.