# Integrate Spike with Google Cloud

## Service and Integration

Make sure you have the service and integration already setup for Google Cloud. Follow the link below on instructions of how to create integration and service

{% content-ref url="create-integration-and-service-on-dashboard" %}
[create-integration-and-service-on-dashboard](https://docs.spike.sh/integrations-guideline/create-integration-and-service-on-dashboard)
{% endcontent-ref %}

## Use the webhook on Google Cloud

We will create a webhook on Stackdriver to integrate directly with Spike. There is no limit to the number of Spike's webhooks you can add on Google Cloud

{% hint style="success" %}
Updated Google Cloud integration docs on 8th May 2020.
{% endhint %}

Login to your [Google Cloud console](https://console.cloud.google.com/) and find [Monitoring](https://console.cloud.google.com/monitoring) on the sidebar

![Select alerting in Monitoring sub menu](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-ab768ce34993332e4abf9b4ed25b8b2872981c6c%2Fimage.png?alt=media\&token=3cd794f1-75f9-4a50-9616-af8a6e7dd093)

![Click on edit notification channel](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-cc3429217aac37dc145bfa799c0474f2a36883d2%2Fnew-2-gcp-edit-notification-channel.png?alt=media\&token=7aa31c59-a368-4cfd-a8fe-f473c3bdc1aa)

![Select webhook](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-c163b9f120816416783a320a5f9a3a99cc5c1efd%2Fnew-3-gcp-select-webhook.png?alt=media\&token=9a637e49-73b9-4766-8675-a9f5054f8ff9)

![Paste the webhook and give an appropriate name](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-df45477cbd2c74c237a5e5658f51ca190cb70d5d%2Fnew-4-gcp-test-connection.png?alt=media\&token=8f016875-2877-4574-96df-c02c8f567f05)

Enter the webhook you copied earlier.

{% hint style="info" %}
Optional: You can choose to have Basic Auth enabled. Every Google Cloud integration will have a unique username password combination.
{% endhint %}

**Hit Test Connection and Save**

{% hint style="info" %}
Testing your webhook will create a test incident. Resolve the test incident immediately. This test incident will not have any metrics though.
{% endhint %}

{% hint style="danger" %}
If it fails, make sure you have pasted the right username and password. Refresh the page after a few tries. We are always available on the Live chat on your dashboard. You can also reach out to us on <support@spike.sh>
{% endhint %}

![Create a new policy](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-b16acc36494912d62d6c2b226fb33ca221fc2289%2Fnew-5-gcp.png?alt=media\&token=6e4e6b42-e5fd-4861-9573-24425febbd6c)

Go to the [monitoring section](https://console.cloud.google.com/monitoring) again and click on Create policy.

![Add your conditions for alerts and select notification channel](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-452bd8b0e4c5246d8111faa163ad41f82e4de261%2Fnew-6-gcp%20\(1\).png?alt=media\&token=0290ef6b-46e6-4ca4-9a08-e785c8506545)

![Select the notification channel we just created](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-c23ef5bcb0ec58389b9804925a2649268941221a%2Fnew-7-gcp.png?alt=media\&token=d3e88114-fdef-4797-8809-dfef5d29522d)

{% hint style="info" %}
For your existing policies, you can simply edit and choose the same steps mentioned
{% endhint %}

Inside of Notifications, click on the dropdown menu and select **Webhook with Basic Authentication**.

## FAQ

1. **How many services and integrations can I create on Spike?**
   * Unlimited
2. **How many escalation policies can I have on Spike?**
   * Unlimited
3. **How many SNS topics can I create on AWS?**
   * Unlimited.

At Spike, we are working hard to integrate with all the tools your business uses. We are on a mission to help **you** identify incidents/crashes/spikes before your customers do.

If you have any integration in mind and would like us to build it for you then contact us at [support@spike.sh.](mailto:support@spike.sh)
