carbonexporter

package module
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 9

README

Carbon Exporter

Status
Stability beta: metrics
Distributions contrib
Issues Open issues Closed issues
Code Owners @aboguszewski-sumo

The Carbon exporter supports Carbon's plaintext protocol.

Configuration

The following settings are required:

  • endpoint (default = localhost:2003): Address and port that the exporter should send data to.

Example:

exporters:
  carbon:
    # by default it will export to localhost:2003 using tcp
  carbon/allsettings:
    # use endpoint to specify alternative destinations for the exporter,
    # the default is localhost:2003
    endpoint: localhost:8080
    # timeout is the maximum duration allowed to connecting and sending the
    # data to the configured endpoint.
    # The default is 5 seconds.
    timeout: 10s

The full list of settings exposed for this receiver are documented here with detailed sample configurations here.

Advanced Configuration

Several helper files are leveraged to provide additional capabilities automatically:

Documentation

Overview

Package carbonexporter implements an exporter that sends data to Carbon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory added in v0.9.0

func NewFactory() exporter.Factory

NewFactory creates a factory for Carbon exporter.

Types

type Config

type Config struct {
	// Specifies the connection endpoint config. The default value is "localhost:2003".
	confignet.TCPAddrConfig `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct.
	// MaxIdleConns is used to set a limit to the maximum idle TCP connections the client can keep open. Default value is 100.
	// If `sending_queue` is enabled, it is recommended to use same value as `sending_queue::num_consumers`.
	MaxIdleConns int `mapstructure:"max_idle_conns"`

	// Timeout is the maximum duration allowed to connecting and sending the
	// data to the Carbon/Graphite backend. The default value is 5s.
	exporterhelper.TimeoutSettings `mapstructure:",squash"`     // squash ensures fields are correctly decoded in embedded struct.
	QueueConfig                    exporterhelper.QueueSettings `mapstructure:"sending_queue"`
	RetryConfig                    configretry.BackOffConfig    `mapstructure:"retry_on_failure"`

	// ResourceToTelemetrySettings defines configuration for converting resource attributes to metric labels.
	ResourceToTelemetryConfig resourcetotelemetry.Settings `mapstructure:"resource_to_telemetry_conversion"`
}

Config defines configuration for Carbon exporter.

func (*Config) Validate added in v0.67.0

func (cfg *Config) Validate() error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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