SignalFx Developers Guide

Integrating with Google Cloud Platform

Google Cloud Platform (GCP) integration connects SignalFx data collection with Google Cloud Platform monitoring.

To create a GCP Integration in SignalFx, you need a new service account key for each project you want to monitor in SignalFx. To learn how to configure GCP and how to get the service account keys, see Connect to Google Cloud Platform in the SignalFx product documentation.

Example

After you retrieve a service account key for each project you want to monitor in SignalFx, create a GCP Integration object using a POST request, as shown in the following example.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ curl \
    --request POST \
    --header "X-SF-TOKEN: YOUR_ORG_TOKEN" \
    --header "Content-Type: application/json; charset=utf8" \
    --data '{
        "type" : "GCP",
        "name" : "<YOUR_INTEGRATION_NAME>",
        "pollRate" : 60000,
        "services" : ["<LIST_OF_SERVICES_TO_MONITOR>"],
        "projects" : [
            {
                "projectId": "<YOUR_FIRST_PROJECT_ID>",
                "projectKey": "<YOUR_JSON_PROJECT_KEY>"
            } ,
            {
                "projectId": "<YOUR_SECOND_PROJECT_ID>",
                "projectKey": "<YOUR_JSON_PROJECT_KEY>"
            }
            ...
        ]
    }' \
    https://api.<REALM>.signalfx.com/v2/integration

The response object for a successful request is similar to the following:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
{
    "type": "GCP",
    "name" : "<YOUR_INTEGRATION_NAME>",
    "pollRate" : 60000,
    "services" : [],
    "id" : <INTEGRATION_ID>,
    "projects" : [
        {
            "projectId": "<YOUR_FIRST_PROJECT_ID>",
            "projectKey": ""
        },
        {
            "projectId": "<YOUR_SECOND_PROJECT_ID>",
            "projectKey": ""
        }
    ],
    "created": <CREATED_TIMESTAMP>,
    "creator": <CREATOR_ID>,
    "lastUpdated": <UPDATED_TIMESTAMP>,
    "lastUpdatedBy": <UPDATER_ID>
}

© Copyright 2019 SignalFx.

Third-party license information