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"` //TODO: Document this as a float?
	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"`
}
    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.
type Component ¶
type Component struct {
	// contains filtered or unexported fields
}
    func New ¶
func New(logger log.Logger, reg prometheus.Registerer, id string, args Arguments) (*Component, error)
func (*Component) CurrentHealth ¶ added in v1.9.0
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"`
}
     Click to show internal directories. 
   Click to hide internal directories.