instanaexporter

package module
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 20 Imported by: 1

README

Instana Exporter

Status
Stability in-development
Supported pipeline types traces
Distributions contrib

The Instana Exporter converts OpenTelemetry trace data and then sends it to the Instana Backend.

Exporter Configuration

The following exporter configuration parameters are supported.

Parameter Description
endpoint The Instana backend endpoint that the Exporter connects to. It depends on your region and it starts with https://serverless-. It corresponds to the Instana environment variable INSTANA_ENDPOINT_URL
agent_key Your Instana Agent key. The same agent key can be used for host agents and serverless monitoring. It corresponds to the Instana environment variable INSTANA_AGENT_KEY

These parameters match the Instana Serverless Monitoring environment variables and can be found here.

Sample Configuration

The code snippet below shows how your configuration file should look like:

[...]

exporters:
  instana:
    endpoint: ${INSTANA_ENDPOINT_URL}
    agent_key: ${INSTANA_AGENT_KEY}

[...]

service:
  pipelines:
    traces:
      exporters: [instana]

[...]
Full Example
receivers:
  otlp:
    protocols:
      grpc:
      http:

processors:
  batch:
exporters:
  logging:
    loglevel: debug
  instana:
    loglevel: debug
    endpoint: ${INSTANA_ENDPOINT_URL}
    agent_key: ${INSTANA_AGENT_KEY}

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [instana]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ExporterFactory

NewFactory creates an Instana exporter factory

Types

type Config

type Config struct {
	config.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct

	Endpoint string `mapstructure:"endpoint"`

	AgentKey string `mapstructure:"agent_key"`

	confighttp.HTTPClientSettings `mapstructure:",squash"`
}

Config defines configuration for the Instana exporter

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the exporter configuration is valid

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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