Documentation
¶
Index ¶
- type Integration
- type IntegrationArgs
- type IntegrationArray
- type IntegrationArrayInput
- type IntegrationArrayOutput
- func (IntegrationArrayOutput) ElementType() reflect.Type
- func (o IntegrationArrayOutput) Index(i pulumi.IntInput) IntegrationOutput
- func (o IntegrationArrayOutput) ToIntegrationArrayOutput() IntegrationArrayOutput
- func (o IntegrationArrayOutput) ToIntegrationArrayOutputWithContext(ctx context.Context) IntegrationArrayOutput
- type IntegrationInput
- type IntegrationMap
- type IntegrationMapInput
- type IntegrationMapOutput
- func (IntegrationMapOutput) ElementType() reflect.Type
- func (o IntegrationMapOutput) MapIndex(k pulumi.StringInput) IntegrationOutput
- func (o IntegrationMapOutput) ToIntegrationMapOutput() IntegrationMapOutput
- func (o IntegrationMapOutput) ToIntegrationMapOutputWithContext(ctx context.Context) IntegrationMapOutput
- type IntegrationOutput
- func (o IntegrationOutput) CustomMetricTypeDomains() pulumi.StringArrayOutput
- func (IntegrationOutput) ElementType() reflect.Type
- func (o IntegrationOutput) Enabled() pulumi.BoolOutput
- func (o IntegrationOutput) ImportGcpMetrics() pulumi.BoolPtrOutput
- func (o IntegrationOutput) IncludeLists() pulumi.StringArrayOutput
- func (o IntegrationOutput) Name() pulumi.StringOutput
- func (o IntegrationOutput) NamedToken() pulumi.StringPtrOutput
- func (o IntegrationOutput) PollRate() pulumi.IntPtrOutput
- func (o IntegrationOutput) ProjectServiceKeys() IntegrationProjectServiceKeyArrayOutput
- func (o IntegrationOutput) Services() pulumi.StringArrayOutput
- func (o IntegrationOutput) ToIntegrationOutput() IntegrationOutput
- func (o IntegrationOutput) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput
- func (o IntegrationOutput) UseMetricSourceProjectForQuota() pulumi.BoolPtrOutput
- type IntegrationProjectServiceKey
- type IntegrationProjectServiceKeyArgs
- func (IntegrationProjectServiceKeyArgs) ElementType() reflect.Type
- func (i IntegrationProjectServiceKeyArgs) ToIntegrationProjectServiceKeyOutput() IntegrationProjectServiceKeyOutput
- func (i IntegrationProjectServiceKeyArgs) ToIntegrationProjectServiceKeyOutputWithContext(ctx context.Context) IntegrationProjectServiceKeyOutput
- type IntegrationProjectServiceKeyArray
- func (IntegrationProjectServiceKeyArray) ElementType() reflect.Type
- func (i IntegrationProjectServiceKeyArray) ToIntegrationProjectServiceKeyArrayOutput() IntegrationProjectServiceKeyArrayOutput
- func (i IntegrationProjectServiceKeyArray) ToIntegrationProjectServiceKeyArrayOutputWithContext(ctx context.Context) IntegrationProjectServiceKeyArrayOutput
- type IntegrationProjectServiceKeyArrayInput
- type IntegrationProjectServiceKeyArrayOutput
- func (IntegrationProjectServiceKeyArrayOutput) ElementType() reflect.Type
- func (o IntegrationProjectServiceKeyArrayOutput) Index(i pulumi.IntInput) IntegrationProjectServiceKeyOutput
- func (o IntegrationProjectServiceKeyArrayOutput) ToIntegrationProjectServiceKeyArrayOutput() IntegrationProjectServiceKeyArrayOutput
- func (o IntegrationProjectServiceKeyArrayOutput) ToIntegrationProjectServiceKeyArrayOutputWithContext(ctx context.Context) IntegrationProjectServiceKeyArrayOutput
- type IntegrationProjectServiceKeyInput
- type IntegrationProjectServiceKeyOutput
- func (IntegrationProjectServiceKeyOutput) ElementType() reflect.Type
- func (o IntegrationProjectServiceKeyOutput) ProjectId() pulumi.StringOutput
- func (o IntegrationProjectServiceKeyOutput) ProjectKey() pulumi.StringOutput
- func (o IntegrationProjectServiceKeyOutput) ToIntegrationProjectServiceKeyOutput() IntegrationProjectServiceKeyOutput
- func (o IntegrationProjectServiceKeyOutput) ToIntegrationProjectServiceKeyOutputWithContext(ctx context.Context) IntegrationProjectServiceKeyOutput
- type IntegrationState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Integration ¶
type Integration struct { pulumi.CustomResourceState // List of additional GCP service domain names that you want to monitor CustomMetricTypeDomains pulumi.StringArrayOutput `pulumi:"customMetricTypeDomains"` // Whether the integration is enabled or not Enabled pulumi.BoolOutput `pulumi:"enabled"` // If enabled, Splunk Observability Cloud will sync also Google Cloud Metrics data. If disabled, Splunk Observability Cloud // will import only metadata. Defaults to true. ImportGcpMetrics pulumi.BoolPtrOutput `pulumi:"importGcpMetrics"` // List of custom metadata keys that you want Observability Cloud to collect for Compute Engine instances. IncludeLists pulumi.StringArrayOutput `pulumi:"includeLists"` // Name of the integration Name pulumi.StringOutput `pulumi:"name"` // A named token to use for ingest NamedToken pulumi.StringPtrOutput `pulumi:"namedToken"` // GCP poll rate (in seconds). Between `60` and `600`. PollRate pulumi.IntPtrOutput `pulumi:"pollRate"` // GCP project service keys ProjectServiceKeys IntegrationProjectServiceKeyArrayOutput `pulumi:"projectServiceKeys"` // GCP enabled services Services pulumi.StringArrayOutput `pulumi:"services"` // When this value is set to true Observability Cloud will force usage of a quota from the project where metrics are // stored. For this to work the service account provided for the project needs to be provided with // serviceusage.services.use permission or Service Usage Consumer role in this project. When set to false default quota // settings are used. UseMetricSourceProjectForQuota pulumi.BoolPtrOutput `pulumi:"useMetricSourceProjectForQuota"` }
Splunk Observability Cloud GCP Integration.
> **NOTE** When managing integrations, use a session token of an administrator to authenticate the Splunk Observability Cloud provider. See [Operations that require a session token for an administrator](https://dev.splunk.com/observability/docs/administration/authtokens#Operations-that-require-a-session-token-for-an-administrator). Otherwise you'll receive a 4xx error.
## Example
```go package main
import (
"os" "github.com/pulumi/pulumi-signalfx/sdk/v7/go/signalfx/gcp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput { data, err := os.ReadFile(path) if err != nil { panic(err.Error()) } return pulumi.String(string(data)) } func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := gcp.NewIntegration(ctx, "gcpMyteam", &gcp.IntegrationArgs{ CustomMetricTypeDomains: pulumi.StringArray{ pulumi.String("istio.io"), }, Enabled: pulumi.Bool(true), ImportGcpMetrics: pulumi.Bool(true), PollRate: pulumi.Int(300), ProjectServiceKeys: gcp.IntegrationProjectServiceKeyArray{ &gcp.IntegrationProjectServiceKeyArgs{ ProjectId: pulumi.String("gcp_project_id_1"), ProjectKey: readFileOrPanic("/path/to/gcp_credentials_1.json"), }, &gcp.IntegrationProjectServiceKeyArgs{ ProjectId: pulumi.String("gcp_project_id_2"), ProjectKey: readFileOrPanic("/path/to/gcp_credentials_2.json"), }, }, Services: pulumi.StringArray{ pulumi.String("compute"), }, }) if err != nil { return err } return nil }) }
```
## Arguments
* `customMetricTypeDomains` - (Optional) List of additional GCP service domain names that Splunk Observability Cloud will monitor. See [Custom Metric Type Domains documentation](https://dev.splunk.com/observability/docs/integrations/gcp_integration_overview/#Custom-metric-type-domains) * `enabled` - (Required) Whether the integration is enabled. * `importGcpMetrics` - (Optional) If enabled, Splunk Observability Cloud will sync also Google Cloud Monitoring data. If disabled, Splunk Observability Cloud will import only metadata. Defaults to true. * `includeList` - (Optional) [Compute Metadata Include List](https://dev.splunk.com/observability/docs/integrations/gcp_integration_overview/). * `name` - (Required) Name of the integration. * `namedToken` - (Optional) Name of the org token to be used for data ingestion. If not specified then default access token is used. * `pollRate` - (Optional) GCP integration poll rate (in seconds). Value between `60` and `600`. Default: `300`. * `projectServiceKeys` - (Required) GCP projects to add. * `services` - (Optional) GCP service metrics to import. Can be an empty list, or not included, to import 'All services'. See [Google Cloud Platform services](https://docs.splunk.com/Observability/gdi/get-data-in/integrations.html#google-cloud-platform-services) for a list of valid values. * `useMetricSourceProjectForQuota` - (Optional) When this value is set to true Observability Cloud will force usage of a quota from the project where metrics are stored. For this to work the service account provided for the project needs to be provided with serviceusage.services.use permission or Service Usage Consumer role in this project. When set to false default quota settings are used.
## Attributes
In addition to all arguments above, the following attributes are exported:
* `id` - The ID of the integration.
func GetIntegration ¶
func GetIntegration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IntegrationState, opts ...pulumi.ResourceOption) (*Integration, error)
GetIntegration gets an existing Integration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewIntegration ¶
func NewIntegration(ctx *pulumi.Context, name string, args *IntegrationArgs, opts ...pulumi.ResourceOption) (*Integration, error)
NewIntegration registers a new resource with the given unique name, arguments, and options.
func (*Integration) ElementType ¶
func (*Integration) ElementType() reflect.Type
func (*Integration) ToIntegrationOutput ¶
func (i *Integration) ToIntegrationOutput() IntegrationOutput
func (*Integration) ToIntegrationOutputWithContext ¶
func (i *Integration) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput
type IntegrationArgs ¶
type IntegrationArgs struct { // List of additional GCP service domain names that you want to monitor CustomMetricTypeDomains pulumi.StringArrayInput // Whether the integration is enabled or not Enabled pulumi.BoolInput // If enabled, Splunk Observability Cloud will sync also Google Cloud Metrics data. If disabled, Splunk Observability Cloud // will import only metadata. Defaults to true. ImportGcpMetrics pulumi.BoolPtrInput // List of custom metadata keys that you want Observability Cloud to collect for Compute Engine instances. IncludeLists pulumi.StringArrayInput // Name of the integration Name pulumi.StringPtrInput // A named token to use for ingest NamedToken pulumi.StringPtrInput // GCP poll rate (in seconds). Between `60` and `600`. PollRate pulumi.IntPtrInput // GCP project service keys ProjectServiceKeys IntegrationProjectServiceKeyArrayInput // GCP enabled services Services pulumi.StringArrayInput // When this value is set to true Observability Cloud will force usage of a quota from the project where metrics are // stored. For this to work the service account provided for the project needs to be provided with // serviceusage.services.use permission or Service Usage Consumer role in this project. When set to false default quota // settings are used. UseMetricSourceProjectForQuota pulumi.BoolPtrInput }
The set of arguments for constructing a Integration resource.
func (IntegrationArgs) ElementType ¶
func (IntegrationArgs) ElementType() reflect.Type
type IntegrationArray ¶
type IntegrationArray []IntegrationInput
func (IntegrationArray) ElementType ¶
func (IntegrationArray) ElementType() reflect.Type
func (IntegrationArray) ToIntegrationArrayOutput ¶
func (i IntegrationArray) ToIntegrationArrayOutput() IntegrationArrayOutput
func (IntegrationArray) ToIntegrationArrayOutputWithContext ¶
func (i IntegrationArray) ToIntegrationArrayOutputWithContext(ctx context.Context) IntegrationArrayOutput
type IntegrationArrayInput ¶
type IntegrationArrayInput interface { pulumi.Input ToIntegrationArrayOutput() IntegrationArrayOutput ToIntegrationArrayOutputWithContext(context.Context) IntegrationArrayOutput }
IntegrationArrayInput is an input type that accepts IntegrationArray and IntegrationArrayOutput values. You can construct a concrete instance of `IntegrationArrayInput` via:
IntegrationArray{ IntegrationArgs{...} }
type IntegrationArrayOutput ¶
type IntegrationArrayOutput struct{ *pulumi.OutputState }
func (IntegrationArrayOutput) ElementType ¶
func (IntegrationArrayOutput) ElementType() reflect.Type
func (IntegrationArrayOutput) Index ¶
func (o IntegrationArrayOutput) Index(i pulumi.IntInput) IntegrationOutput
func (IntegrationArrayOutput) ToIntegrationArrayOutput ¶
func (o IntegrationArrayOutput) ToIntegrationArrayOutput() IntegrationArrayOutput
func (IntegrationArrayOutput) ToIntegrationArrayOutputWithContext ¶
func (o IntegrationArrayOutput) ToIntegrationArrayOutputWithContext(ctx context.Context) IntegrationArrayOutput
type IntegrationInput ¶
type IntegrationInput interface { pulumi.Input ToIntegrationOutput() IntegrationOutput ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput }
type IntegrationMap ¶
type IntegrationMap map[string]IntegrationInput
func (IntegrationMap) ElementType ¶
func (IntegrationMap) ElementType() reflect.Type
func (IntegrationMap) ToIntegrationMapOutput ¶
func (i IntegrationMap) ToIntegrationMapOutput() IntegrationMapOutput
func (IntegrationMap) ToIntegrationMapOutputWithContext ¶
func (i IntegrationMap) ToIntegrationMapOutputWithContext(ctx context.Context) IntegrationMapOutput
type IntegrationMapInput ¶
type IntegrationMapInput interface { pulumi.Input ToIntegrationMapOutput() IntegrationMapOutput ToIntegrationMapOutputWithContext(context.Context) IntegrationMapOutput }
IntegrationMapInput is an input type that accepts IntegrationMap and IntegrationMapOutput values. You can construct a concrete instance of `IntegrationMapInput` via:
IntegrationMap{ "key": IntegrationArgs{...} }
type IntegrationMapOutput ¶
type IntegrationMapOutput struct{ *pulumi.OutputState }
func (IntegrationMapOutput) ElementType ¶
func (IntegrationMapOutput) ElementType() reflect.Type
func (IntegrationMapOutput) MapIndex ¶
func (o IntegrationMapOutput) MapIndex(k pulumi.StringInput) IntegrationOutput
func (IntegrationMapOutput) ToIntegrationMapOutput ¶
func (o IntegrationMapOutput) ToIntegrationMapOutput() IntegrationMapOutput
func (IntegrationMapOutput) ToIntegrationMapOutputWithContext ¶
func (o IntegrationMapOutput) ToIntegrationMapOutputWithContext(ctx context.Context) IntegrationMapOutput
type IntegrationOutput ¶
type IntegrationOutput struct{ *pulumi.OutputState }
func (IntegrationOutput) CustomMetricTypeDomains ¶
func (o IntegrationOutput) CustomMetricTypeDomains() pulumi.StringArrayOutput
List of additional GCP service domain names that you want to monitor
func (IntegrationOutput) ElementType ¶
func (IntegrationOutput) ElementType() reflect.Type
func (IntegrationOutput) Enabled ¶
func (o IntegrationOutput) Enabled() pulumi.BoolOutput
Whether the integration is enabled or not
func (IntegrationOutput) ImportGcpMetrics ¶
func (o IntegrationOutput) ImportGcpMetrics() pulumi.BoolPtrOutput
If enabled, Splunk Observability Cloud will sync also Google Cloud Metrics data. If disabled, Splunk Observability Cloud will import only metadata. Defaults to true.
func (IntegrationOutput) IncludeLists ¶
func (o IntegrationOutput) IncludeLists() pulumi.StringArrayOutput
List of custom metadata keys that you want Observability Cloud to collect for Compute Engine instances.
func (IntegrationOutput) Name ¶
func (o IntegrationOutput) Name() pulumi.StringOutput
Name of the integration
func (IntegrationOutput) NamedToken ¶
func (o IntegrationOutput) NamedToken() pulumi.StringPtrOutput
A named token to use for ingest
func (IntegrationOutput) PollRate ¶
func (o IntegrationOutput) PollRate() pulumi.IntPtrOutput
GCP poll rate (in seconds). Between `60` and `600`.
func (IntegrationOutput) ProjectServiceKeys ¶
func (o IntegrationOutput) ProjectServiceKeys() IntegrationProjectServiceKeyArrayOutput
GCP project service keys
func (IntegrationOutput) Services ¶
func (o IntegrationOutput) Services() pulumi.StringArrayOutput
GCP enabled services
func (IntegrationOutput) ToIntegrationOutput ¶
func (o IntegrationOutput) ToIntegrationOutput() IntegrationOutput
func (IntegrationOutput) ToIntegrationOutputWithContext ¶
func (o IntegrationOutput) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput
func (IntegrationOutput) UseMetricSourceProjectForQuota ¶
func (o IntegrationOutput) UseMetricSourceProjectForQuota() pulumi.BoolPtrOutput
When this value is set to true Observability Cloud will force usage of a quota from the project where metrics are stored. For this to work the service account provided for the project needs to be provided with serviceusage.services.use permission or Service Usage Consumer role in this project. When set to false default quota settings are used.
type IntegrationProjectServiceKeyArgs ¶
type IntegrationProjectServiceKeyArgs struct { ProjectId pulumi.StringInput `pulumi:"projectId"` ProjectKey pulumi.StringInput `pulumi:"projectKey"` }
func (IntegrationProjectServiceKeyArgs) ElementType ¶
func (IntegrationProjectServiceKeyArgs) ElementType() reflect.Type
func (IntegrationProjectServiceKeyArgs) ToIntegrationProjectServiceKeyOutput ¶
func (i IntegrationProjectServiceKeyArgs) ToIntegrationProjectServiceKeyOutput() IntegrationProjectServiceKeyOutput
func (IntegrationProjectServiceKeyArgs) ToIntegrationProjectServiceKeyOutputWithContext ¶
func (i IntegrationProjectServiceKeyArgs) ToIntegrationProjectServiceKeyOutputWithContext(ctx context.Context) IntegrationProjectServiceKeyOutput
type IntegrationProjectServiceKeyArray ¶
type IntegrationProjectServiceKeyArray []IntegrationProjectServiceKeyInput
func (IntegrationProjectServiceKeyArray) ElementType ¶
func (IntegrationProjectServiceKeyArray) ElementType() reflect.Type
func (IntegrationProjectServiceKeyArray) ToIntegrationProjectServiceKeyArrayOutput ¶
func (i IntegrationProjectServiceKeyArray) ToIntegrationProjectServiceKeyArrayOutput() IntegrationProjectServiceKeyArrayOutput
func (IntegrationProjectServiceKeyArray) ToIntegrationProjectServiceKeyArrayOutputWithContext ¶
func (i IntegrationProjectServiceKeyArray) ToIntegrationProjectServiceKeyArrayOutputWithContext(ctx context.Context) IntegrationProjectServiceKeyArrayOutput
type IntegrationProjectServiceKeyArrayInput ¶
type IntegrationProjectServiceKeyArrayInput interface { pulumi.Input ToIntegrationProjectServiceKeyArrayOutput() IntegrationProjectServiceKeyArrayOutput ToIntegrationProjectServiceKeyArrayOutputWithContext(context.Context) IntegrationProjectServiceKeyArrayOutput }
IntegrationProjectServiceKeyArrayInput is an input type that accepts IntegrationProjectServiceKeyArray and IntegrationProjectServiceKeyArrayOutput values. You can construct a concrete instance of `IntegrationProjectServiceKeyArrayInput` via:
IntegrationProjectServiceKeyArray{ IntegrationProjectServiceKeyArgs{...} }
type IntegrationProjectServiceKeyArrayOutput ¶
type IntegrationProjectServiceKeyArrayOutput struct{ *pulumi.OutputState }
func (IntegrationProjectServiceKeyArrayOutput) ElementType ¶
func (IntegrationProjectServiceKeyArrayOutput) ElementType() reflect.Type
func (IntegrationProjectServiceKeyArrayOutput) ToIntegrationProjectServiceKeyArrayOutput ¶
func (o IntegrationProjectServiceKeyArrayOutput) ToIntegrationProjectServiceKeyArrayOutput() IntegrationProjectServiceKeyArrayOutput
func (IntegrationProjectServiceKeyArrayOutput) ToIntegrationProjectServiceKeyArrayOutputWithContext ¶
func (o IntegrationProjectServiceKeyArrayOutput) ToIntegrationProjectServiceKeyArrayOutputWithContext(ctx context.Context) IntegrationProjectServiceKeyArrayOutput
type IntegrationProjectServiceKeyInput ¶
type IntegrationProjectServiceKeyInput interface { pulumi.Input ToIntegrationProjectServiceKeyOutput() IntegrationProjectServiceKeyOutput ToIntegrationProjectServiceKeyOutputWithContext(context.Context) IntegrationProjectServiceKeyOutput }
IntegrationProjectServiceKeyInput is an input type that accepts IntegrationProjectServiceKeyArgs and IntegrationProjectServiceKeyOutput values. You can construct a concrete instance of `IntegrationProjectServiceKeyInput` via:
IntegrationProjectServiceKeyArgs{...}
type IntegrationProjectServiceKeyOutput ¶
type IntegrationProjectServiceKeyOutput struct{ *pulumi.OutputState }
func (IntegrationProjectServiceKeyOutput) ElementType ¶
func (IntegrationProjectServiceKeyOutput) ElementType() reflect.Type
func (IntegrationProjectServiceKeyOutput) ProjectId ¶
func (o IntegrationProjectServiceKeyOutput) ProjectId() pulumi.StringOutput
func (IntegrationProjectServiceKeyOutput) ProjectKey ¶
func (o IntegrationProjectServiceKeyOutput) ProjectKey() pulumi.StringOutput
func (IntegrationProjectServiceKeyOutput) ToIntegrationProjectServiceKeyOutput ¶
func (o IntegrationProjectServiceKeyOutput) ToIntegrationProjectServiceKeyOutput() IntegrationProjectServiceKeyOutput
func (IntegrationProjectServiceKeyOutput) ToIntegrationProjectServiceKeyOutputWithContext ¶
func (o IntegrationProjectServiceKeyOutput) ToIntegrationProjectServiceKeyOutputWithContext(ctx context.Context) IntegrationProjectServiceKeyOutput
type IntegrationState ¶
type IntegrationState struct { // List of additional GCP service domain names that you want to monitor CustomMetricTypeDomains pulumi.StringArrayInput // Whether the integration is enabled or not Enabled pulumi.BoolPtrInput // If enabled, Splunk Observability Cloud will sync also Google Cloud Metrics data. If disabled, Splunk Observability Cloud // will import only metadata. Defaults to true. ImportGcpMetrics pulumi.BoolPtrInput // List of custom metadata keys that you want Observability Cloud to collect for Compute Engine instances. IncludeLists pulumi.StringArrayInput // Name of the integration Name pulumi.StringPtrInput // A named token to use for ingest NamedToken pulumi.StringPtrInput // GCP poll rate (in seconds). Between `60` and `600`. PollRate pulumi.IntPtrInput // GCP project service keys ProjectServiceKeys IntegrationProjectServiceKeyArrayInput // GCP enabled services Services pulumi.StringArrayInput // When this value is set to true Observability Cloud will force usage of a quota from the project where metrics are // stored. For this to work the service account provided for the project needs to be provided with // serviceusage.services.use permission or Service Usage Consumer role in this project. When set to false default quota // settings are used. UseMetricSourceProjectForQuota pulumi.BoolPtrInput }
func (IntegrationState) ElementType ¶
func (IntegrationState) ElementType() reflect.Type