elasticsearchexporter

package module
v0.0.0-...-8ab2800 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

README

Elasticsearch Exporter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ExporterFactory

Types

type Config

type Config struct {
	config.ExporterSettings `mapstructure:",squash"`

	// Endpoints holds the Elasticsearch URLs the exporter sends InternalSpans to
	Endpoints []string `mapstructure:"endpoints"`

	// Defaults to teletrace_spans
	Index string `mapstructure:"index"`

	// Username is used to configure HTTP Basic Authentication.
	// If set, password must be set as well
	Username string `mapstructure:"username"`

	// Password is used to configure HTTP Basic Authentication.
	Password string `mapstructure:"password"`

	// APIKey is used to configure ApiKey based Authentication.
	APIKey string `mapstructure:"api_key"`
}

Config defines configuration for Elastic exporter.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate validates the elasticsearch server configuration.

Jump to

Keyboard shortcuts

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