exporter

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package exporter exposes utilities to create a Flow component from OpenTelemetry Collector exporters.

Index

Constants

This section is empty.

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() otelconfig.Exporter

	// Extensions returns the set of extensions that the configured component is
	// allowed to use.
	Extensions() map[otelconfig.ComponentID]otelcomponent.Extension

	// Exporters returns the set of exporters that are exposed to the configured
	// component.
	Exporters() map[otelconfig.DataType]map[otelconfig.ComponentID]otelcomponent.Exporter
}

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 a Flow component shim which manages an OpenTelemetry Collector exporter component.

func New

New creates a new Flow component which encapsulates an OpenTelemetry Collector exporter. args must hold a value of the argument type registered with the Flow component.

The registered component must be registered to export the otelcol.ConsumerExports type, otherwise New will panic.

func (*Exporter) CurrentHealth

func (e *Exporter) CurrentHealth() component.Health

CurrentHealth implements component.HealthComponent.

func (*Exporter) Run

func (e *Exporter) Run(ctx context.Context) error

Run starts the Exporter component.

func (*Exporter) Update

func (e *Exporter) Update(args component.Arguments) error

Update implements component.Component. It will convert the Arguments into configuration for OpenTelemetry Collector exporter configuration and manage the underlying OpenTelemetry Collector exporter.

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

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