pyroscopereceiver

package
v0.0.0-...-7afc304 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

README

Pyroscope Receiver

Status
Stability [beta]
Supported pipeline types logs

Implements the Pyroscope ingest protocol and conveys the accepted profiles as OpenTelemetry logs backed IR for further processing and export.

Configuration

  • protocols: sets the application layer protocols that the receiver will serve. See Supported Protocols. Default is http/s on 0.0.0.0:8062 with max request body size of: 5e6 + 1e6.
  • timeout: sets the server reponse timeout. Default is 10 seconds.

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]

Supported Protocols

Http

Supported Languages

Java

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

Creates a factory for the pyroscope receiver.

Types

type Config

type Config struct {
	Protocols Protocols `mapstructure:"protocols"`

	// Cofigures timeout for synchronous request handling by the receiver server
	Timeout time.Duration `mapstructure:"timeout"`
}

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

type Protocols

type Protocols struct {
	// HTTP.MaxRequestBodySize configures max uncompressed body size in bytes
	HTTP *confighttp.ServerConfig `mapstructure:"http"`
}

Configures supported protocols

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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