elasticexporter

package module
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: Apache-2.0 Imports: 17 Imported by: 1

README

Elastic Exporter

This exporter supports sending OpenTelemetry data to the Elastic Stack.

Complete documentation is available on Elastic.co.

Configuration options
  • apm_server_url (required): Elastic APM Server URL.
  • api_key (optional): credential for API Key authorization, if enabled in Elastic APM Server.
  • secret_token (optional): credential for Secret Token authorization, if enabled in Elastic APM Server.
  • ca_file (optional): root Certificate Authority (CA) certificate, for verifying the server's identity, if TLS is enabled.
  • cert_file (optional): client TLS certificate.
  • key_file (optional): client TLS key.
  • insecure (optional): disable verification of the server's identity, if TLS is enabled.
Example
exporters:
    elastic:
        apm_server_url: "https://elasticapm.example.com"
        secret_token: "hunter2"

Documentation

Overview

Package elasticexporter contains an opentelemetry-collector exporter for Elastic APM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory added in v0.7.0

func NewFactory() component.ExporterFactory

NewFactory creates a factory for Elastic exporter.

Types

type Config

type Config struct {
	configmodels.ExporterSettings `mapstructure:",squash"`
	configtls.TLSClientSetting    `mapstructure:",squash"`

	// APMServerURLs holds the APM Server URL.
	//
	// This is required.
	APMServerURL string `mapstructure:"apm_server_url"`

	// APIKey holds an optional API Key for authorization.
	//
	// https://www.elastic.co/guide/en/apm/server/7.7/api-key-settings.html
	APIKey string `mapstructure:"api_key"`

	// SecretToken holds the optional secret token for authorization.
	//
	// https://www.elastic.co/guide/en/apm/server/7.7/secret-token.html
	SecretToken string `mapstructure:"secret_token"`
}

Config defines configuration for Elastic APM exporter.

func (Config) Validate

func (cfg Config) Validate() error

Validate validates the configuration.

Directories

Path Synopsis
internal
translator/elastic
Package elastic contains an OTLP exporter for Elastic APM.
Package elastic contains an OTLP exporter for Elastic APM.

Jump to

Keyboard shortcuts

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