|
| 1 | +GCP Cloud Monitoring Integration with Robusta |
| 2 | +============================================= |
| 3 | + |
| 4 | +.. note:: |
| 5 | + This feature is available with the Robusta SaaS platform and self-hosted commercial plans. It is not available in the open-source version. |
| 6 | + |
| 7 | +This guide explains how to forward **GCP Cloud Monitoring alerts** to Robusta via a managed notification channel webhook. |
| 8 | + |
| 9 | +Requirements |
| 10 | +------------ |
| 11 | + |
| 12 | +- Robusta is deployed and running. |
| 13 | +- You have access to the Robusta UI (to create an API key and find your ``account_id``). |
| 14 | +- You have access to GCP Cloud Monitoring with permissions to create notification channels. |
| 15 | + |
| 16 | +Step 1: Get Robusta Account ID and API Key |
| 17 | +------------------------------------------ |
| 18 | + |
| 19 | +1. In the Robusta UI, go to **Settings -> API Keys**. |
| 20 | +2. Click **New API Key**, select **Alerts: Write** permissions, and **Save**. |
| 21 | +3. Copy the generated API key — you will use it as the password for basic authentication. |
| 22 | +4. Find your ``account_id``: |
| 23 | + |
| 24 | + - In Robusta, the ``account_id`` appears in your **generated_values.yaml** file (from installation), or |
| 25 | + - In the Robusta UI under **Settings -> Workspace**. |
| 26 | + |
| 27 | +Step 2: Create a Webhook Notification Channel in GCP |
| 28 | +---------------------------------------------------- |
| 29 | + |
| 30 | +1. In the GCP Console, navigate to **Monitoring -> Alerting -> Edit Notification Channels**. |
| 31 | +2. Under **Webhooks**, click **Add New**. |
| 32 | +3. Configure the webhook with the following settings: |
| 33 | + |
| 34 | + - **Display Name**: ``RobustaWebhook`` |
| 35 | + - **Endpoint URL**: ``https://api.robusta.dev/integrations/generic/gcp`` |
| 36 | + - **Authentication**: Select **Basic Authentication** |
| 37 | + - **Username**: Your Robusta ``account_id`` from Step 1 |
| 38 | + - **Password**: Your Robusta API key from Step 1 |
| 39 | + |
| 40 | +4. Click **Save** to create the notification channel. |
| 41 | + |
| 42 | +Step 3: Use the Webhook in Alerting Policies |
| 43 | +-------------------------------------------- |
| 44 | + |
| 45 | +1. Navigate to **Monitoring -> Alerting -> Policies**. |
| 46 | +2. Create a new alerting policy or edit an existing one. |
| 47 | +3. In the **Notifications** section, select the **RobustaWebhook** notification channel. |
| 48 | +4. Save the alerting policy. |
| 49 | + |
| 50 | +Validation |
| 51 | +---------- |
| 52 | + |
| 53 | +- Trigger a test alert or wait for an existing alerting policy to fire. |
| 54 | +- In Robusta's UI, verify the alert appears with the expected details. |
0 commit comments