Documentation
¶
Index ¶
Constants ¶
View Source
const (
LabelProcessID = "__process_pid__"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct {
Targets []discovery.Target `alloy:"targets,attr"`
ForwardTo []pyroscope.Appendable `alloy:"forward_to,attr"`
TmpDir string `alloy:"tmp_dir,attr,optional"`
ProfilingConfig ProfilingConfig `alloy:"profiling_config,block,optional"`
// undocumented
Dist string `alloy:"dist,attr,optional"`
}
func DefaultArguments ¶
func DefaultArguments() Arguments
func (*Arguments) UnmarshalAlloy ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func New ¶
func New(logger log.Logger, reg prometheus.Registerer, id string, a Arguments) (*Component, error)
type ProfilingConfig ¶
type ProfilingConfig struct {
Interval time.Duration `alloy:"interval,attr,optional"`
SampleRate int `alloy:"sample_rate,attr,optional"`
Alloc string `alloy:"alloc,attr,optional"`
Lock string `alloy:"lock,attr,optional"`
CPU bool `alloy:"cpu,attr,optional"`
Event string `alloy:"event,attr,optional"`
PerThread bool `alloy:"per_thread,attr,optional"`
LogLevel string `alloy:"log_level,attr,optional"`
Quiet bool `alloy:"quiet,attr,optional"`
}
Click to show internal directories.
Click to hide internal directories.