otlphttp

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package otlphttp provides an otelcol.exporter.otlphttp component.

Index

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 otelcol.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() otelcol.DebugMetricsArguments

DebugMetricsConfig implements receiver.Arguments.

func (Arguments) Exporters

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.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate implements syntax.Validator.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL