Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "gcp"
Variables ¶
View Source
var DefaultArguments = Config{ ResourceAttributes: ResourceAttributesConfig{ CloudAccountID: rac.ResourceAttributeConfig{Enabled: true}, CloudAvailabilityZone: rac.ResourceAttributeConfig{Enabled: true}, CloudPlatform: rac.ResourceAttributeConfig{Enabled: true}, CloudProvider: rac.ResourceAttributeConfig{Enabled: true}, CloudRegion: rac.ResourceAttributeConfig{Enabled: true}, FaasID: rac.ResourceAttributeConfig{Enabled: true}, FaasInstance: rac.ResourceAttributeConfig{Enabled: true}, FaasName: rac.ResourceAttributeConfig{Enabled: true}, FaasVersion: rac.ResourceAttributeConfig{Enabled: true}, GcpCloudRunJobExecution: rac.ResourceAttributeConfig{Enabled: true}, GcpCloudRunJobTaskIndex: rac.ResourceAttributeConfig{Enabled: true}, GcpGceInstanceHostname: rac.ResourceAttributeConfig{Enabled: false}, GcpGceInstanceName: rac.ResourceAttributeConfig{Enabled: false}, HostID: rac.ResourceAttributeConfig{Enabled: true}, HostName: rac.ResourceAttributeConfig{Enabled: true}, HostType: rac.ResourceAttributeConfig{Enabled: true}, K8sClusterName: rac.ResourceAttributeConfig{Enabled: true}, }, }
DefaultArguments holds default settings for Config.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ResourceAttributes ResourceAttributesConfig `alloy:"resource_attributes,block,optional"`
}
func (*Config) SetToDefault ¶
func (args *Config) SetToDefault()
SetToDefault implements syntax.Defaulter.
type ResourceAttributesConfig ¶
type ResourceAttributesConfig struct { CloudAccountID rac.ResourceAttributeConfig `alloy:"cloud.account.id,block,optional"` CloudAvailabilityZone rac.ResourceAttributeConfig `alloy:"cloud.availability_zone,block,optional"` CloudPlatform rac.ResourceAttributeConfig `alloy:"cloud.platform,block,optional"` CloudProvider rac.ResourceAttributeConfig `alloy:"cloud.provider,block,optional"` CloudRegion rac.ResourceAttributeConfig `alloy:"cloud.region,block,optional"` FaasID rac.ResourceAttributeConfig `alloy:"faas.id,block,optional"` FaasInstance rac.ResourceAttributeConfig `alloy:"faas.instance,block,optional"` FaasName rac.ResourceAttributeConfig `alloy:"faas.name,block,optional"` FaasVersion rac.ResourceAttributeConfig `alloy:"faas.version,block,optional"` GcpCloudRunJobExecution rac.ResourceAttributeConfig `alloy:"gcp.cloud_run.job.execution,block,optional"` GcpCloudRunJobTaskIndex rac.ResourceAttributeConfig `alloy:"gcp.cloud_run.job.task_index,block,optional"` GcpGceInstanceHostname rac.ResourceAttributeConfig `alloy:"gcp.gce.instance.hostname,block,optional"` GcpGceInstanceName rac.ResourceAttributeConfig `alloy:"gcp.gce.instance.name,block,optional"` HostID rac.ResourceAttributeConfig `alloy:"host.id,block,optional"` HostName rac.ResourceAttributeConfig `alloy:"host.name,block,optional"` HostType rac.ResourceAttributeConfig `alloy:"host.type,block,optional"` K8sClusterName rac.ResourceAttributeConfig `alloy:"k8s.cluster.name,block,optional"` }
ResourceAttributesConfig provides config for gcp resource attributes.
func (ResourceAttributesConfig) Convert ¶
func (r ResourceAttributesConfig) Convert() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.