logzioexporter

package module
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 16 Imported by: 7

README

Logzio Exporter

This exporter supports sending trace data to Logz.io

The following configuration options are supported:

  • account_token (Required): Your logz.io account token for your tracing account.
  • metrics_token (Optional): This is deprecated, but may be used for the OpenSearch/ElasticSearch based Metrics backend.
  • region (Optional): Your logz.io account region code. Defaults to us. Required only if your logz.io region is different than US.
  • custom_endpoint (Optional): Custom endpoint, mostly used for dev or testing. This will override the region parameter.

Example:

exporters:
  logzio:
    account_token: "LOGZIOtraceTOKEN"
    metrics_token: "LOGZIOmetricsTOKEN"
    region: "eu"

In order to use the Prometheus backend you must use the standard prometheusremotewrite exporter as well. The following regions are supported and configured as follows. The Logz.io Listener URL for for your region, configured to use port 8052 for http traffic, or port 8053 for https traffic.

Example:

exporters:
  prometheusremotewrite:
    endpoint: "https://listener.logz.io:8053"
    headers:
      Authorization: "Bearer LOGZIOprometheusTOKEN"

Putting these both together it would look like this in a full configuration:

receivers:
  jaeger:
    protocols:
      thrift_http:
        endpoint: "0.0.0.0:14278"

  prometheus:
    config:
      scrape_configs:
      - job_name: 'ratelimiter'
        scrape_interval: 15s
        static_configs:
        - targets: [ "0.0.0.0:8889" ]

exporters:
  logzio:
    account_token: "LOGZIOtraceTOKEN"
    region: "us"

  prometheusremotewrite:
    endpoint: "https://listener.logz.io:8053"
    headers:
      Authorization: "Bearer LOGZIOprometheusTOKEN"

service:
  pipelines:
    traces:
      receivers: [jaeger]
      exporters: [logzio]

    metrics:
      receivers: [prometheus]
      exporters: [prometheusremotewrite]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ExporterFactory

NewFactory creates a factory for Logz.io exporter.

Types

type Config

type Config struct {
	config.ExporterSettings `mapstructure:",squash"`
	TracesToken             string `mapstructure:"account_token"`   // Your Logz.io Account Token, can be found at https://app.logz.io/#/dashboard/settings/general
	MetricsToken            string `mapstructure:"metrics_token"`   // Your Logz.io Metrics Token, can be found at https://docs.logz.io/user-guide/accounts/finding-your-metrics-account-token/
	Region                  string `mapstructure:"region"`          // Your Logz.io 2-letter region code, can be found at https://docs.logz.io/user-guide/accounts/account-region.html#available-regions
	CustomEndpoint          string `mapstructure:"custom_endpoint"` // Custom endpoint to ship traces to. Use only for dev and tests.
}

Config contains Logz.io specific configuration such as Account TracesToken, Region, etc.

type Hclog2ZapLogger added in v0.14.0

type Hclog2ZapLogger struct {
	Zap *zap.Logger
	// contains filtered or unexported fields
}

Hclog2ZapLogger implements Hashicorp's hclog.Logger interface using Uber's zap.Logger. It's a workaround for plugin system. go-plugin doesn't support other logger than hclog. This logger implements only methods used by the go-plugin.

func (Hclog2ZapLogger) Debug added in v0.14.0

func (l Hclog2ZapLogger) Debug(msg string, args ...interface{})

Debug implementation.

func (Hclog2ZapLogger) Error added in v0.14.0

func (l Hclog2ZapLogger) Error(msg string, args ...interface{})

Error implementation.

func (Hclog2ZapLogger) ImpliedArgs added in v0.14.0

func (l Hclog2ZapLogger) ImpliedArgs() []interface{}

func (Hclog2ZapLogger) Info added in v0.14.0

func (l Hclog2ZapLogger) Info(msg string, args ...interface{})

Info implementation.

func (Hclog2ZapLogger) IsDebug added in v0.14.0

func (l Hclog2ZapLogger) IsDebug() bool

IsDebug implementation.

func (Hclog2ZapLogger) IsError added in v0.14.0

func (l Hclog2ZapLogger) IsError() bool

IsError implementation.

func (Hclog2ZapLogger) IsInfo added in v0.14.0

func (l Hclog2ZapLogger) IsInfo() bool

IsInfo implementation.

func (Hclog2ZapLogger) IsTrace added in v0.14.0

func (l Hclog2ZapLogger) IsTrace() bool

IsTrace implementation.

func (Hclog2ZapLogger) IsWarn added in v0.14.0

func (l Hclog2ZapLogger) IsWarn() bool

IsWarn implementation.

func (Hclog2ZapLogger) Log added in v0.14.0

func (l Hclog2ZapLogger) Log(level hclog.Level, msg string, args ...interface{})

func (Hclog2ZapLogger) Name added in v0.14.0

func (l Hclog2ZapLogger) Name() string

func (Hclog2ZapLogger) Named added in v0.14.0

func (l Hclog2ZapLogger) Named(name string) hclog.Logger

Named implementation.

func (Hclog2ZapLogger) ResetNamed added in v0.14.0

func (l Hclog2ZapLogger) ResetNamed(name string) hclog.Logger

ResetNamed implementation.

func (Hclog2ZapLogger) SetLevel added in v0.14.0

func (l Hclog2ZapLogger) SetLevel(level hclog.Level)

SetLevel implementation.

func (Hclog2ZapLogger) StandardLogger added in v0.14.0

func (l Hclog2ZapLogger) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger

StandardLogger implementation.

func (Hclog2ZapLogger) StandardWriter added in v0.14.0

func (l Hclog2ZapLogger) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer

func (Hclog2ZapLogger) Trace added in v0.14.0

func (l Hclog2ZapLogger) Trace(msg string, args ...interface{})

Trace implementation.

func (Hclog2ZapLogger) Warn added in v0.14.0

func (l Hclog2ZapLogger) Warn(msg string, args ...interface{})

Warn implementation.

func (Hclog2ZapLogger) With added in v0.14.0

func (l Hclog2ZapLogger) With(args ...interface{}) hclog.Logger

With implementation.

Jump to

Keyboard shortcuts

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