Integration

SignalFx GCP Integration

NOTE When managing integrations you’ll need to use an admin token to authenticate the SignalFx provider. Otherwise you’ll receive a 4xx error.

Example Usage

using System.IO;
using Pulumi;
using SignalFx = Pulumi.SignalFx;

class MyStack : Stack
{
    public MyStack()
    {
        var gcpMyteam = new SignalFx.Gcp.Integration("gcpMyteam", new SignalFx.Gcp.IntegrationArgs
        {
            Enabled = true,
            PollRate = 300000,
            ProjectServiceKeys = 
            {
                new SignalFx.Gcp.Inputs.IntegrationProjectServiceKeyArgs
                {
                    ProjectId = "gcp_project_id_1",
                    ProjectKey = File.ReadAllText("/path/to/gcp_credentials_1.json"),
                },
                new SignalFx.Gcp.Inputs.IntegrationProjectServiceKeyArgs
                {
                    ProjectId = "gcp_project_id_2",
                    ProjectKey = File.ReadAllText("/path/to/gcp_credentials_2.json"),
                },
            },
            Services = 
            {
                "compute",
            },
        });
    }

}

Coming soon!

import pulumi
import pulumi_signalfx as signalfx

gcp_myteam = signalfx.gcp.Integration("gcpMyteam",
    enabled=True,
    poll_rate=300000,
    project_service_keys=[
        {
            "projectId": "gcp_project_id_1",
            "project_key": (lambda path: open(path).read())("/path/to/gcp_credentials_1.json"),
        },
        {
            "projectId": "gcp_project_id_2",
            "project_key": (lambda path: open(path).read())("/path/to/gcp_credentials_2.json"),
        },
    ],
    services=["compute"])
import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as signalfx from "@pulumi/signalfx";

const gcpMyteam = new signalfx.gcp.Integration("gcp_myteam", {
    enabled: true,
    pollRate: 300000,
    projectServiceKeys: [
        {
            projectId: "gcp_project_id_1",
            projectKey: fs.readFileSync("/path/to/gcp_credentials_1.json", "utf-8"),
        },
        {
            projectId: "gcp_project_id_2",
            projectKey: fs.readFileSync("/path/to/gcp_credentials_2.json", "utf-8"),
        },
    ],
    services: ["compute"],
});

Create a Integration Resource

def Integration(resource_name, opts=None, enabled=None, name=None, named_token=None, poll_rate=None, project_service_keys=None, services=None, whitelists=None, __props__=None);
func NewIntegration(ctx *Context, name string, args IntegrationArgs, opts ...ResourceOption) (*Integration, error)
public Integration(string name, IntegrationArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args IntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args IntegrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args IntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Integration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Integration resource accepts the following input properties:

Enabled bool

Whether the integration is enabled.

Name string

Name of the integration.

NamedToken string

A named token to use for ingest

PollRate int

GCP integration poll rate in seconds. Can be set to either 60 or 300 (1 minute or 5 minutes).

ProjectServiceKeys List<Pulumi.SignalFx.Gcp.Inputs.IntegrationProjectServiceKeyArgs>

GCP projects to add.

Services List<string>

GCP service metrics to import. Can be an empty list, or not included, to import ‘All services’. See the documentation for Creating Integrations for valid values.

Whitelists List<string>

Compute Metadata Whitelist

Enabled bool

Whether the integration is enabled.

Name string

Name of the integration.

NamedToken string

A named token to use for ingest

PollRate int

GCP integration poll rate in seconds. Can be set to either 60 or 300 (1 minute or 5 minutes).

ProjectServiceKeys []IntegrationProjectServiceKey

GCP projects to add.

Services []string

GCP service metrics to import. Can be an empty list, or not included, to import ‘All services’. See the documentation for Creating Integrations for valid values.

Whitelists []string

Compute Metadata Whitelist

enabled boolean

Whether the integration is enabled.

name string

Name of the integration.

namedToken string

A named token to use for ingest

pollRate number

GCP integration poll rate in seconds. Can be set to either 60 or 300 (1 minute or 5 minutes).

projectServiceKeys IntegrationProjectServiceKey[]

GCP projects to add.

services string[]

GCP service metrics to import. Can be an empty list, or not included, to import ‘All services’. See the documentation for Creating Integrations for valid values.

whitelists string[]

Compute Metadata Whitelist

enabled bool

Whether the integration is enabled.

name str

Name of the integration.

named_token str

A named token to use for ingest

poll_rate float

GCP integration poll rate in seconds. Can be set to either 60 or 300 (1 minute or 5 minutes).

project_service_keys List[IntegrationProjectServiceKey]

GCP projects to add.

services List[str]

GCP service metrics to import. Can be an empty list, or not included, to import ‘All services’. See the documentation for Creating Integrations for valid values.

whitelists List[str]

Compute Metadata Whitelist

Outputs

All input properties are implicitly available as output properties. Additionally, the Integration resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Integration Resource

Get an existing Integration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IntegrationState, opts?: CustomResourceOptions): Integration
static get(resource_name, id, opts=None, enabled=None, name=None, named_token=None, poll_rate=None, project_service_keys=None, services=None, whitelists=None, __props__=None);
func GetIntegration(ctx *Context, name string, id IDInput, state *IntegrationState, opts ...ResourceOption) (*Integration, error)
public static Integration Get(string name, Input<string> id, IntegrationState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Enabled bool

Whether the integration is enabled.

Name string

Name of the integration.

NamedToken string

A named token to use for ingest

PollRate int

GCP integration poll rate in seconds. Can be set to either 60 or 300 (1 minute or 5 minutes).

ProjectServiceKeys List<Pulumi.SignalFx.Gcp.Inputs.IntegrationProjectServiceKeyArgs>

GCP projects to add.

Services List<string>

GCP service metrics to import. Can be an empty list, or not included, to import ‘All services’. See the documentation for Creating Integrations for valid values.

Whitelists List<string>

Compute Metadata Whitelist

Enabled bool

Whether the integration is enabled.

Name string

Name of the integration.

NamedToken string

A named token to use for ingest

PollRate int

GCP integration poll rate in seconds. Can be set to either 60 or 300 (1 minute or 5 minutes).

ProjectServiceKeys []IntegrationProjectServiceKey

GCP projects to add.

Services []string

GCP service metrics to import. Can be an empty list, or not included, to import ‘All services’. See the documentation for Creating Integrations for valid values.

Whitelists []string

Compute Metadata Whitelist

enabled boolean

Whether the integration is enabled.

name string

Name of the integration.

namedToken string

A named token to use for ingest

pollRate number

GCP integration poll rate in seconds. Can be set to either 60 or 300 (1 minute or 5 minutes).

projectServiceKeys IntegrationProjectServiceKey[]

GCP projects to add.

services string[]

GCP service metrics to import. Can be an empty list, or not included, to import ‘All services’. See the documentation for Creating Integrations for valid values.

whitelists string[]

Compute Metadata Whitelist

enabled bool

Whether the integration is enabled.

name str

Name of the integration.

named_token str

A named token to use for ingest

poll_rate float

GCP integration poll rate in seconds. Can be set to either 60 or 300 (1 minute or 5 minutes).

project_service_keys List[IntegrationProjectServiceKey]

GCP projects to add.

services List[str]

GCP service metrics to import. Can be an empty list, or not included, to import ‘All services’. See the documentation for Creating Integrations for valid values.

whitelists List[str]

Compute Metadata Whitelist

Supporting Types

IntegrationProjectServiceKey

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

ProjectId string
ProjectKey string
ProjectId string
ProjectKey string
projectId string
projectKey string
projectId str
project_key str

Package Details

Repository
https://github.com/pulumi/pulumi-signalfx
License
Apache-2.0
Notes
This Pulumi package is based on the signalfx Terraform Provider.