Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type Config ¶
type Config struct {
// Remote configures pulling pprof profiles from a remote HTTP endpoint.
Remote configoptional.Optional[RemoteConfig] `mapstructure:"remote"`
// File configures reading pprof profiles from files matching a glob pattern.
File configoptional.Optional[FileConfig] `mapstructure:"file"`
// Self configures profiling the running collector.
Self configoptional.Optional[SelfConfig] `mapstructure:"self"`
// Server configures an HTTP server that accepts pushed pprof profiles.
Server configoptional.Optional[ServerConfig] `mapstructure:"server"`
// contains filtered or unexported fields
}
Config defines the configuration for the pprof receiver.
type FileConfig ¶ added in v0.153.0
type FileConfig struct {
scraperhelper.ControllerConfig `mapstructure:",squash"`
// Include is the glob pattern for pprof files to scrape.
Include string `mapstructure:"include"`
// contains filtered or unexported fields
}
FileConfig configures a scraper that reads pprof files matching a glob pattern.
type RemoteConfig ¶ added in v0.153.0
type RemoteConfig struct {
scraperhelper.ControllerConfig `mapstructure:",squash"`
confighttp.ClientConfig `mapstructure:",squash"`
// contains filtered or unexported fields
}
RemoteConfig configures a scraper that pulls pprof from a remote HTTP endpoint.
type SelfConfig ¶ added in v0.153.0
type SelfConfig struct {
scraperhelper.ControllerConfig `mapstructure:",squash"`
// Fraction of blocking events that are profiled. A value <= 0 disables
// profiling. See https://golang.org/pkg/runtime/#SetBlockProfileRate for details.
BlockProfileFraction int `mapstructure:"block_profile_fraction"`
// Fraction of mutex contention events that are profiled. A value <= 0
// disables profiling. See https://golang.org/pkg/runtime/#SetMutexProfileFraction
// for details.
MutexProfileFraction int `mapstructure:"mutex_profile_fraction"`
// contains filtered or unexported fields
}
SelfConfig configures a scraper that profiles the running collector.
type ServerConfig ¶ added in v0.153.0
type ServerConfig struct {
confighttp.ServerConfig `mapstructure:",squash"`
// contains filtered or unexported fields
}
ServerConfig configures an HTTP server that accepts pushed pprof data.
Click to show internal directories.
Click to hide internal directories.