GCP Cloud Monitoring Integration with Robusta¶
Note
This feature is available with the Robusta SaaS platform and self-hosted commercial plans. It is not available in the open-source version.
Note
Every alert must carry a cluster or cluster_name label. Set it to the Robusta cluster_name configured for the target cluster, or use external when the alerts do not belong to a specific runner.
This guide explains how to forward GCP Cloud Monitoring alerts to Robusta via a managed notification channel webhook.
Requirements¶
Robusta is deployed and running.
You have access to the Robusta UI (to create an API key and find your
account_id).You have access to GCP Cloud Monitoring with permissions to create notification channels.
Step 1: Get Robusta Account ID and API Key¶
In the Robusta UI, go to Settings -> API Keys.
Click New API Key, select Alerts: Write permissions, and Save.
Copy the generated API key — you will use it as the password for basic authentication.
Find your
account_id:In Robusta, the
account_idappears in your generated_values.yaml file (from installation), orIn the Robusta UI under Settings -> Workspace.
Step 2: Create a Webhook Notification Channel in GCP¶
In the GCP Console, navigate to Monitoring -> Alerting -> Edit Notification Channels.
Under Webhooks, click Add New.
Configure the webhook with the following settings:
Display Name:
RobustaWebhookEndpoint URL:
https://api.robusta.dev/integrations/generic/gcpAuthentication: Select Basic Authentication
Username: Your Robusta
account_idfrom Step 1Password: Your Robusta API key from Step 1
Click Save to create the notification channel.
Step 3: Use the Webhook in Alerting Policies¶
Navigate to Monitoring -> Alerting -> Policies.
Create a new alerting policy or edit an existing one.
In the Notifications section, select the RobustaWebhook notification channel.
Add a cluster label (required): In the policy's Documentation section, add a custom label:
Key:
cluster_nameValue: Your Robusta cluster name (e.g.,
my-gcp-cluster) orexternalfor non-Kubernetes alerts
Save the alerting policy.
Validation¶
Trigger a test alert or wait for an existing alerting policy to fire.
In Robusta's UI, verify the alert appears with the expected details.