pprofreceiver

package module
v0.0.0-...-3b8014d Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

PPROF receiver

Status
Stability [alpha]: logs
Distributions [bpf]
License Apache 2

Integrations

Exports to the pprof-server backend that stores, aggregates and visualizes pprof profiles.

Special Thanks

This project is only made possible due to the awesome work of OpenTelemetry & Pprof

Documentation

Overview

Package bpfstack receives data from stack profiling generated from eBPF

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidDelta = errors.New("invalid delta value, must be positive")
)

Functions

func NewFactory

func NewFactory() receiver.Factory

func NewPprofReceiver

func NewPprofReceiver(cfg *Config, logger *zap.Logger) *pprofReceiver

Types

type AllocConfig

type AllocConfig struct {
	*GenericConfig
}

type Config

type Config struct {
	Endpoints []EndpointConfig `mapstructure:"endpoints"`
	Global    GenericConfig    `mapstructure:"global"`
}

func (*Config) Validate

func (c *Config) Validate() error

type EndpointConfig

type EndpointConfig struct {
	Id            string                    `mapstructure:"id"`
	ExtraLabels   map[string]string         `mapstructure:"extra_labels"`
	Endpoint      string                    `mapstructure:"endpoint"`
	GenericConfig *GenericConfig            `mapstructure:"local"`
	Targets       map[string]*GenericConfig `mapstructure:"targets"`
}

func (*EndpointConfig) Validate

func (e *EndpointConfig) Validate() error

type GenericConfig

type GenericConfig struct {
	CollectionInterval *time.Duration     `mapstructure:"collection_interval"`
	Labels             *map[string]string `mapstructure:"labels"`
	Seconds            *int               `mapstructure:"seconds"`
}

func Merge

func Merge(ours, theirs *GenericConfig) *GenericConfig

func (*GenericConfig) Validate

func (g *GenericConfig) Validate() error

type Metadata

type Metadata struct {
	Id          string
	ProfileType string
	Host        string
	Port        string
}

func (*Metadata) ToLabels

func (m *Metadata) ToLabels() map[string]string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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