GCP Cloud Monitoring¶
Forward Cloud Monitoring alerting policies to Robusta via a GCP webhook notification channel.
Prerequisites¶
A Robusta account with API access.
Your Robusta
account_id, found ingenerated_values.yaml.A Robusta API key with
Read/Writeaccess to alerts.A GCP project with the
Monitoring Notification Channel Editorrole.
Webhook URL¶
https://api.robusta.dev/webhooks?type=alert&origin=gcp&account_id=<ACCOUNT_ID>
Configure GCP¶
GCP webhook notification channels do not support custom headers in the console, so include the API key in the URL:
https://api.robusta.dev/webhooks?type=alert&origin=gcp&account_id=<ACCOUNT_ID>&token=<ROBUSTA_API_KEY>
The token query parameter is accepted as an alternative to the Authorization header.
In the GCP Console, go to Monitoring → Alerting → Edit Notification Channels.
Click Add new under Webhooks.
Set the Endpoint URL to the URL above and name it
Robusta.Save and attach the channel to the alerting policies you want to forward.
Verify¶
Use Send test notification on the channel. The event should appear in Settings → Delivery Log and on the Robusta timeline.