Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Arguments
 - func (args Arguments) Convert() (otelcomponent.Config, error)
 - func (args Arguments) ConvertDetectors() []string
 - func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
 - func (args Arguments) Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component
 - func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
 - func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
 - func (args *Arguments) SetToDefault()
 - func (args *Arguments) Validate() error
 
- type DetectorConfig
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct {
	// Detectors is an ordered list of named detectors that should be
	// run to attempt to detect resource information.
	Detectors []string `alloy:"detectors,attr,optional"`
	// Override indicates whether any existing resource attributes
	// should be overridden or preserved. Defaults to true.
	Override bool `alloy:"override,attr,optional"`
	// DetectorConfig is a list of settings specific to all detectors
	DetectorConfig DetectorConfig `alloy:",squash"`
	// HTTP client settings for the detector
	// Timeout default is 5s
	Timeout time.Duration `alloy:"timeout,attr,optional"`
	// Output configures where to send processed data. Required.
	Output *otelcol.ConsumerArguments `alloy:"output,block"`
	// DebugMetrics configures component internal metrics. Optional.
	DebugMetrics otelcolCfg.DebugMetricsArguments `alloy:"debug_metrics,block,optional"`
}
    Arguments configures the otelcol.processor.resourcedetection component.
func (Arguments) Convert ¶
func (args Arguments) Convert() (otelcomponent.Config, error)
Convert implements processor.Arguments.
func (Arguments) ConvertDetectors ¶
func (Arguments) DebugMetricsConfig ¶ added in v1.2.0
func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
DebugMetricsConfig implements processor.Arguments.
func (Arguments) Exporters ¶
func (args Arguments) Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component
Exporters implements processor.Arguments.
func (Arguments) Extensions ¶
func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
Extensions implements processor.Arguments.
func (Arguments) NextConsumers ¶
func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
NextConsumers implements processor.Arguments.
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type DetectorConfig ¶
type DetectorConfig struct {
	// EC2Config contains user-specified configurations for the EC2 detector
	EC2Config ec2.Config `alloy:"ec2,block,optional"`
	// ECSConfig contains user-specified configurations for the ECS detector
	ECSConfig ecs.Config `alloy:"ecs,block,optional"`
	// EKSConfig contains user-specified configurations for the EKS detector
	EKSConfig eks.Config `alloy:"eks,block,optional"`
	// Elasticbeanstalk contains user-specified configurations for the elasticbeanstalk detector
	ElasticbeanstalkConfig elasticbeanstalk.Config `alloy:"elasticbeanstalk,block,optional"`
	// Lambda contains user-specified configurations for the lambda detector
	LambdaConfig lambda.Config `alloy:"lambda,block,optional"`
	// Azure contains user-specified configurations for the azure detector
	AzureConfig azure.Config `alloy:"azure,block,optional"`
	// Aks contains user-specified configurations for the aks detector
	AksConfig aks.Config `alloy:"aks,block,optional"`
	// ConsulConfig contains user-specified configurations for the Consul detector
	ConsulConfig consul.Config `alloy:"consul,block,optional"`
	// DockerConfig contains user-specified configurations for the docker detector
	DockerConfig docker.Config `alloy:"docker,block,optional"`
	// GcpConfig contains user-specified configurations for the gcp detector
	GcpConfig gcp.Config `alloy:"gcp,block,optional"`
	// HerokuConfig contains user-specified configurations for the heroku detector
	HerokuConfig heroku.Config `alloy:"heroku,block,optional"`
	// SystemConfig contains user-specified configurations for the System detector
	SystemConfig system.Config `alloy:"system,block,optional"`
	// OpenShift contains user-specified configurations for the Openshift detector
	OpenShiftConfig openshift.Config `alloy:"openshift,block,optional"`
	// KubernetesNode contains user-specified configurations for the K8SNode detector
	KubernetesNodeConfig k8snode.Config `alloy:"kubernetes_node,block,optional"`
}
    DetectorConfig contains user-specified configurations unique to all individual detectors
func (*DetectorConfig) SetToDefault ¶
func (dc *DetectorConfig) SetToDefault()
 Click to show internal directories. 
   Click to hide internal directories.