Documentation ¶
Overview ¶
Package otlphttp provides an otelcol.exporter.otlphttp component.
Index ¶
- Constants
- Variables
- 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) SetToDefault()
- func (args *Arguments) Validate() error
- type HTTPClientArguments
Constants ¶
View Source
const ( EncodingProto string = "proto" EncodingJSON string = "json" )
Variables ¶
View Source
var ( DefaultMaxIdleConns = 100 DefaultIdleConnTimeout = 90 * time.Second )
Default server settings.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { Client HTTPClientArguments `alloy:"client,block"` Queue otelcol.QueueArguments `alloy:"sending_queue,block,optional"` Retry otelcol.RetryArguments `alloy:"retry_on_failure,block,optional"` // DebugMetrics configures component internal metrics. Optional. DebugMetrics otelcolCfg.DebugMetricsArguments `alloy:"debug_metrics,block,optional"` // The URLs to send metrics/logs/traces to. If omitted the exporter will // use Client.Endpoint by appending "/v1/metrics", "/v1/logs" or // "/v1/traces", respectively. If set, these settings override // Client.Endpoint for the corresponding signal. TracesEndpoint string `alloy:"traces_endpoint,attr,optional"` MetricsEndpoint string `alloy:"metrics_endpoint,attr,optional"` LogsEndpoint string `alloy:"logs_endpoint,attr,optional"` Encoding string `alloy:"encoding,attr,optional"` }
Arguments configures the otelcol.exporter.otlphttp component.
func (Arguments) Convert ¶
func (args Arguments) Convert() (otelcomponent.Config, error)
Convert implements exporter.Arguments.
func (Arguments) DebugMetricsConfig ¶
func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
DebugMetricsConfig implements exporter.Arguments.
func (Arguments) Exporters ¶
func (args Arguments) Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component
Exporters implements exporter.Arguments.
func (Arguments) Extensions ¶
func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
Extensions implements exporter.Arguments.
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type HTTPClientArguments ¶
type HTTPClientArguments otelcol.HTTPClientArguments
HTTPClientArguments is used to configure otelcol.exporter.otlphttp with component-specific defaults.
func (*HTTPClientArguments) SetToDefault ¶
func (args *HTTPClientArguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
Click to show internal directories.
Click to hide internal directories.