clickhouseprofileexporter

package
v0.0.0-...-e2edb79 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Clickhouse Profile Exporter

Status
Stability [beta]
Supported pipeline types logs

Exports conveyed OpenTelemetry logs backed IR for profiles into a Clickhouse cluster. See Pyropscope Receiver, which can send compatible profiles.

Configuration

Example

receivers:
  pyroscopereceiver:
    protocols:
      http:
        endpoint: 0.0.0.0:8062
    timeout: 30s
      
exporters:
  clickhouseprofileexporter:
      dsn: tcp://0.0.0.0:9000/qryn
      timeout: 10s
      sending_queue:
        queue_size: 100
      retry_on_failure:
        enabled: true
        initial_interval: 5s
        max_interval: 30s
        max_elapsed_time: 300s

service:
  pipelines:
    logs/profiles:
      receivers: [pyroscopereceiver]
      processors: [batch]
      exporters: [clickhouseprofileexporter]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() exporter.Factory

Creates a factory for the clickhouse profile exporter.

Types

type Config

type Config struct {
	exporterhelper.TimeoutSettings `mapstructure:",squash"`
	configretry.BackOffConfig      `mapstructure:"retry_on_failure"`
	exporterhelper.QueueSettings   `mapstructure:"sending_queue"`

	// DSN is the ClickHouse server Data Source Name.
	// For tcp protocol reference: [ClickHouse/clickhouse-go#dsn](https://github.com/ClickHouse/clickhouse-go#dsn).
	// For http protocol reference: [mailru/go-clickhouse/#dsn](https://github.com/mailru/go-clickhouse/#dsn).
	Dsn string `mapstructure:"dsn"`
}

Represents the receiver config within the collector's config.yaml

func (*Config) Validate

func (cfg *Config) Validate() error

Checks that the receiver configuration is valid

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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