Documentation ¶
Overview ¶
Package exporter exposes utilities to create an Alloy component from OpenTelemetry Collector exporters.
Index ¶
Constants ¶
const TypeAll = TypeLogs | TypeMetrics | TypeTraces
TypeAll indicates that the exporter supports all telemetry signals.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments interface { component.Arguments // Convert converts the Arguments into an OpenTelemetry Collector exporter // configuration. Convert() (otelcomponent.Config, error) // Extensions returns the set of extensions that the configured component is // allowed to use. Extensions() map[otelcomponent.ID]otelextension.Extension // Exporters returns the set of exporters that are exposed to the configured // component. Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component // DebugMetricsConfig returns the configuration for debug metrics DebugMetricsConfig() otelcolCfg.DebugMetricsArguments }
Arguments is an extension of component.Arguments which contains necessary settings for OpenTelemetry Collector exporters.
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is an Alloy component shim which manages an OpenTelemetry Collector exporter component.
func New ¶
func New(opts component.Options, f otelexporter.Factory, args Arguments, supportedSignals TypeSignal) (*Exporter, error)
New creates a new component which encapsulates an OpenTelemetry Collector exporter. args must hold a value of the argument type registered with the Alloy component.
The registered component must be registered to export the otelcol.ConsumerExports type, otherwise New will panic.
func (*Exporter) CurrentHealth ¶
CurrentHealth implements component.HealthComponent.
type TypeSignal ¶
type TypeSignal byte
TypeSignal is a bit field to indicate which telemetry signals the exporter supports.
const ( TypeLogs TypeSignal = 1 << iota // 1 TypeMetrics // 2 TypeTraces // 4 )
func (TypeSignal) SupportsLogs ¶
func (s TypeSignal) SupportsLogs() bool
SupportsLogs returns true if the exporter supports logs.
func (TypeSignal) SupportsMetrics ¶
func (s TypeSignal) SupportsMetrics() bool
SupportsMetrics returns true if the exporter supports metrics.
func (TypeSignal) SupportsTraces ¶
func (s TypeSignal) SupportsTraces() bool
SupportsTraces returns true if the exporter supports traces.
Directories ¶
Path | Synopsis |
---|---|
Package awss3 provides an otelcol.exporter.awss3 component
|
Package awss3 provides an otelcol.exporter.awss3 component |
Package kafka provides an otelcol.exporter.kafka component.
|
Package kafka provides an otelcol.exporter.kafka component. |
Package loadbalancing provides an otelcol.exporter.loadbalancing component.
|
Package loadbalancing provides an otelcol.exporter.loadbalancing component. |
Package logging provides an otelcol.exporter.logging component.
|
Package logging provides an otelcol.exporter.logging component. |
Package loki provides an otelcol.exporter.loki component.
|
Package loki provides an otelcol.exporter.loki component. |
internal/convert
Package convert implements conversion utilities to convert between OpenTelemetry Collector and Loki data.
|
Package convert implements conversion utilities to convert between OpenTelemetry Collector and Loki data. |
Package otlp provides an otelcol.exporter.otlp component.
|
Package otlp provides an otelcol.exporter.otlp component. |
Package otlphttp provides an otelcol.exporter.otlphttp component.
|
Package otlphttp provides an otelcol.exporter.otlphttp component. |
Package prometheus provides an otelcol.exporter.prometheus component.
|
Package prometheus provides an otelcol.exporter.prometheus component. |
internal/convert
Package convert implements conversion utilities to convert between OpenTelemetry Collector data and Prometheus data.
|
Package convert implements conversion utilities to convert between OpenTelemetry Collector data and Prometheus data. |