Documentation ¶
Overview ¶
Package otlp provides an otelcol.receiver.otlp component.
Index ¶
- type Arguments
- func (args Arguments) Convert() (otelcomponent.Config, error)
- 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 GRPCServerArguments
- type HTTPConfigArguments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { GRPC *GRPCServerArguments `alloy:"grpc,block,optional"` HTTP *HTTPConfigArguments `alloy:"http,block,optional"` // DebugMetrics configures component internal metrics. Optional. DebugMetrics otelcolCfg.DebugMetricsArguments `alloy:"debug_metrics,block,optional"` // Output configures where to send received data. Required. Output *otelcol.ConsumerArguments `alloy:"output,block"` }
Arguments configures the otelcol.receiver.otlp component.
func (Arguments) Convert ¶
func (args Arguments) Convert() (otelcomponent.Config, error)
Convert implements receiver.Arguments.
func (Arguments) DebugMetricsConfig ¶
func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
DebugMetricsConfig implements receiver.Arguments.
func (Arguments) Exporters ¶
func (args Arguments) Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component
Exporters implements receiver.Arguments.
func (Arguments) Extensions ¶
func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
Extensions implements receiver.Arguments.
func (Arguments) NextConsumers ¶
func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
NextConsumers implements receiver.Arguments.
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type GRPCServerArguments ¶
type GRPCServerArguments otelcol.GRPCServerArguments
GRPCServerArguments is used to configure otelcol.receiver.otlp with component-specific defaults.
func (*GRPCServerArguments) SetToDefault ¶
func (args *GRPCServerArguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type HTTPConfigArguments ¶
type HTTPConfigArguments struct { HTTPServerArguments *otelcol.HTTPServerArguments `alloy:",squash"` // The URL path to receive traces on. If omitted "/v1/traces" will be used. TracesURLPath string `alloy:"traces_url_path,attr,optional"` // The URL path to receive metrics on. If omitted "/v1/metrics" will be used. MetricsURLPath string `alloy:"metrics_url_path,attr,optional"` // The URL path to receive logs on. If omitted "/v1/logs" will be used. LogsURLPath string `alloy:"logs_url_path,attr,optional"` }
func (*HTTPConfigArguments) Convert ¶
func (args *HTTPConfigArguments) Convert() *otlpreceiver.HTTPConfig
Convert converts args into the upstream type.
func (*HTTPConfigArguments) SetToDefault ¶
func (args *HTTPConfigArguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
Click to show internal directories.
Click to hide internal directories.