kafkaexporter

package
v0.0.0-...-5deca64 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TypeStr = "kafka"

TypeStr defines exporter type.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flags *flag.FlagSet)

AddFlags adds Ingester flags.

Types

type Factory

type Factory struct {
	// Wrapped is kafka exporter
	Wrapped component.ExporterFactory
	// Viper is used to get configuration values for default configuration
	Viper *viper.Viper
}

Factory wraps kafkaexporter.Factory and makes the default config configurable via viper. For instance this enables using flags as default values in the config object.

func (Factory) CreateDefaultConfig

func (f Factory) CreateDefaultConfig() configmodels.Exporter

CreateDefaultConfig returns default configuration of Factory. This function implements OTEL component.ExporterFactoryBase interface.

func (Factory) CreateLogsExporter

CreateLogsExporter creates a metrics exporter based on provided config. This function implements component.ExporterFactory.

func (Factory) CreateMetricsExporter

func (f Factory) CreateMetricsExporter(
	ctx context.Context,
	params component.ExporterCreateParams,
	cfg configmodels.Exporter,
) (component.MetricsExporter, error)

CreateMetricsExporter creates a metrics exporter based on provided config. This function implements component.ExporterFactory.

func (Factory) CreateTracesExporter

CreateTracesExporter creates Jaeger trace exporter. This function implements OTEL component.ExporterFactory interface.

func (Factory) Type

func (f Factory) Type() configmodels.Type

Type returns the type of the exporter.

Jump to

Keyboard shortcuts

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