ebpf

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	ForwardTo            []pyroscope.Appendable `alloy:"forward_to,attr"`
	Targets              []discovery.Target     `alloy:"targets,attr,optional"`
	CollectInterval      time.Duration          `alloy:"collect_interval,attr,optional"`
	SampleRate           int                    `alloy:"sample_rate,attr,optional"`
	PythonEnabled        bool                   `alloy:"python_enabled,attr,optional"`
	PerlEnabled          bool                   `alloy:"perl_enabled,attr,optional"`
	PHPEnabled           bool                   `alloy:"php_enabled,attr,optional"`
	HotspotEnabled       bool                   `alloy:"hotspot_enabled,attr,optional"`
	RubyEnabled          bool                   `alloy:"ruby_enabled,attr,optional"`
	V8Enabled            bool                   `alloy:"v8_enabled,attr,optional"`
	DotNetEnabled        bool                   `alloy:"dotnet_enabled,attr,optional"`
	GoEnabled            bool                   `alloy:"go_enabled,attr,optional"`
	Demangle             string                 `alloy:"demangle,attr,optional"`
	OffCPUThreshold      float64                `alloy:"off_cpu_threshold,attr,optional"`
	LoadProbe            bool                   `alloy:"load_probe,attr,optional"`
	UProbeLinks          []string               `alloy:"u_probe_links,attr,optional"`
	VerboseMode          bool                   `alloy:"verbose_mode,attr,optional"`
	LazyMode             bool                   `alloy:"lazy_mode,attr,optional"`
	NoKernelVersionCheck bool                   `alloy:"no_kernel_version_check,attr,optional"`
	DeprecatedArguments  DeprecatedArguments    `alloy:",squash"`

	// undocumented
	PyroscopeDynamicProfilingPolicy bool   `alloy:"targets_only,attr,optional"`
	SymbCachePath                   string `alloy:"symb_cache_path,attr,optional"`
	SymbCacheSizeEntries            int    `alloy:"symb_cache_size,attr,optional"`
	ReporterUnsymbolizedStubs       bool   `alloy:"reporter_unsymbolized_stubs,attr,optional"`
	PIDLabel                        bool   `alloy:"pid_label,attr,optional"`
	Comm                            string `alloy:"comm,attr,optional"` // to address a Grafana Labs customer's escalation
	KernelFrames                    bool   `alloy:"kernel_frames,attr,optional"`

	DebugInfoArguments debuginfo.Arguments `alloy:"debug_info,block,optional"`
}

func NewDefaultArguments added in v1.1.0

func NewDefaultArguments() Arguments

NewDefaultArguments create the default settings for a scrape job.

func (*Arguments) Convert added in v1.11.0

func (args *Arguments) Convert() (*controller.Config, error)

func (*Arguments) SetToDefault added in v1.1.0

func (args *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (*Arguments) Validate added in v1.1.0

func (a *Arguments) Validate() error

Validate implements syntax.Validator.

type Component

type Component struct {
	// contains filtered or unexported fields
}

func New

func New(logger *slog.Logger, reg prometheus.Registerer, id string, args Arguments) (*Component, error)

func (*Component) CurrentHealth added in v1.9.0

func (c *Component) CurrentHealth() component.Health

func (*Component) ReportExecutable added in v1.13.0

func (c *Component) ReportExecutable(md *reporter2.ExecutableMetadata)

func (*Component) Run

func (c *Component) Run(ctx context.Context) error

func (*Component) Update

func (c *Component) Update(args component.Arguments) error

type DeprecatedArguments added in v1.11.0

type DeprecatedArguments struct {
	// deprecated
	PidCacheSize int `alloy:"pid_cache_size,attr,optional"`
	// deprecated
	BuildIDCacheSize int `alloy:"build_id_cache_size,attr,optional"`
	// deprecated
	SameFileCacheSize int `alloy:"same_file_cache_size,attr,optional"`
	// deprecated
	CacheRounds int `alloy:"cache_rounds,attr,optional"`
	// deprecated
	GoTableFallback bool `alloy:"go_table_fallback,attr,optional"`
	// deprecated
	SymbolsMapSize int `alloy:"symbols_map_size,attr,optional"`
	// deprecated
	PIDMapSize int `alloy:"pid_map_size,attr,optional"`
	// deprecated
	CollectUserProfile bool `alloy:"collect_user_profile,attr,optional"`
	// deprecated
	CollectKernelProfile bool `alloy:"collect_kernel_profile,attr,optional"`
	// deprecated
	ContainerIDCacheSize uint32 `alloy:"container_id_cache_size,attr,optional"`
}

Directories

Path Synopsis
parca/reporter/elfwriter
Package elfwriter is a package to write ELF files without having their entire contents in memory at any one time.
Package elfwriter is a package to write ELF files without having their entire contents in memory at any one time.
symb

Jump to

Keyboard shortcuts

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