carbonreceiver

package module
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Apache-2.0 Imports: 18 Imported by: 12

README

Carbon Receiver

To be added.

Documentation

Overview

Package carbonreceiver implements a receiver that can be used by the OpenTelemetry collector to receive data in the Carbon supported formats. Carbon is the backend used by Graphite, see https://graphite.readthedocs.io/en/latest/carbon-daemons.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	logger *zap.Logger,
	config Config,
	nextConsumer consumer.MetricsConsumer,
) (component.MetricsReceiver, error)

New creates the Carbon receiver with the given configuration.

func NewFactory added in v0.9.0

func NewFactory() component.ReceiverFactory

NewFactory creates a factory for Carbon receiver.

Types

type Config

type Config struct {
	configmodels.ReceiverSettings `mapstructure:",squash"`

	confignet.NetAddr `mapstructure:",squash"`

	// TCPIdleTimeout is the timout for idle TCP connections, it is ignored
	// if transport being used is UDP.
	TCPIdleTimeout time.Duration `mapstructure:"tcp_idle_timeout"`

	// Parser specifies a parser and the respective configuration to be used
	// by the receiver.
	Parser *protocol.Config `mapstructure:"parser"`
}

Config defines configuration for the Carbon receiver.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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