Documentation
¶
Index ¶
- Variables
- type Arguments
- func (args Arguments) Convert() (otelcomponent.Config, error)
- func (args Arguments) ConvertDetectors() []string
- 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 ¶
View Source
var DefaultArguments = Arguments{
Detectors: []string{"env"},
Override: true,
Timeout: 5 * time.Second,
DetectorConfig: DetectorConfig{
EC2Config: ec2.DefaultArguments,
ECSConfig: ecs.DefaultArguments,
EKSConfig: eks.DefaultArguments,
ElasticbeanstalkConfig: elasticbeanstalk.DefaultArguments,
LambdaConfig: lambda.DefaultArguments,
AzureConfig: azure.DefaultArguments,
AksConfig: aks.DefaultArguments,
ConsulConfig: consul.DefaultArguments,
DockerConfig: docker.DefaultArguments,
GcpConfig: gcp.DefaultArguments,
HerokuConfig: heroku.DefaultArguments,
SystemConfig: system.DefaultArguments,
OpenShiftConfig: openshift.DefaultArguments,
KubernetesNodeConfig: kubernetes_node.DefaultArguments,
},
}
DefaultArguments holds default settings for Arguments.
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 `river:"detectors,attr,optional"`
// Override indicates whether any existing resource attributes
// should be overridden or preserved. Defaults to true.
Override bool `river:"override,attr,optional"`
// DetectorConfig is a list of settings specific to all detectors
DetectorConfig DetectorConfig `river:",squash"`
// HTTP client settings for the detector
// Timeout default is 5s
Timeout time.Duration `river:"timeout,attr,optional"`
// Output configures where to send processed data. Required.
Output *otelcol.ConsumerArguments `river:"output,block"`
}
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 (args Arguments) ConvertDetectors() []string
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 river.Defaulter.
type DetectorConfig ¶
type DetectorConfig struct {
// EC2Config contains user-specified configurations for the EC2 detector
EC2Config ec2.Config `river:"ec2,block,optional"`
// ECSConfig contains user-specified configurations for the ECS detector
ECSConfig ecs.Config `river:"ecs,block,optional"`
// EKSConfig contains user-specified configurations for the EKS detector
EKSConfig eks.Config `river:"eks,block,optional"`
// Elasticbeanstalk contains user-specified configurations for the elasticbeanstalk detector
ElasticbeanstalkConfig elasticbeanstalk.Config `river:"elasticbeanstalk,block,optional"`
// Lambda contains user-specified configurations for the lambda detector
LambdaConfig lambda.Config `river:"lambda,block,optional"`
// Azure contains user-specified configurations for the azure detector
AzureConfig azure.Config `river:"azure,block,optional"`
// Aks contains user-specified configurations for the aks detector
AksConfig aks.Config `river:"aks,block,optional"`
// ConsulConfig contains user-specified configurations for the Consul detector
ConsulConfig consul.Config `river:"consul,block,optional"`
// DockerConfig contains user-specified configurations for the docker detector
DockerConfig docker.Config `river:"docker,block,optional"`
// GcpConfig contains user-specified configurations for the gcp detector
GcpConfig gcp.Config `river:"gcp,block,optional"`
// HerokuConfig contains user-specified configurations for the heroku detector
HerokuConfig heroku.Config `river:"heroku,block,optional"`
// SystemConfig contains user-specified configurations for the System detector
SystemConfig system.Config `river:"system,block,optional"`
// OpenShift contains user-specified configurations for the Openshift detector
OpenShiftConfig openshift.Config `river:"openshift,block,optional"`
// KubernetesNode contains user-specified configurations for the K8SNode detector
KubernetesNodeConfig kubernetes_node.Config `river:"kubernetes_node,block,optional"`
}
DetectorConfig contains user-specified configurations unique to all individual detectors
Click to show internal directories.
Click to hide internal directories.