Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { Config string `def:"<installPrefix>/etc/pyroscope/agent.yml" desc:"location of config file"` LogLevel string `def:"info", desc:"debug|info|warn|error"` // AgentCMD []string AgentSpyName string `desc:"name of the spy you want to use"` // TODO: add options AgentPID int `def:"-1" desc:"pid of the process you want to spy on"` ServerAddress string `def:"http://localhost:4040" desc:"address of the pyroscope server"` UpstreamThreads int `def:"4"` UpstreamRequestTimeout time.Duration `def:"10s"` UNIXSocketPath string `def:"<installPrefix>/var/run/pyroscope-agent.sock" desc:"path to a UNIX socket file"` }
type Config ¶
type Config struct { Version bool Agent Agent `skip:"true"` Server Server `skip:"true"` Convert Convert `skip:"true"` Exec Exec `skip:"true"` }
func NewForTests ¶
type Exec ¶
type Exec struct { SpyName string `def:"auto"` ApplicationName string `def:"" desc:"application name used when uploading profiling data"` DetectSubprocesses bool `def:"true"` ServerAddress string `def:"http://localhost:4040" desc:"address of the pyroscope server"` UpstreamThreads int `def:"4" desc:"number of upload threads"` UpstreamRequestTimeout time.Duration `def:"10s"` NoLogging bool `def:"false" desc:"disables logging from pyroscope"` }
type Server ¶
type Server struct { Config string `def:"<installPrefix>/etc/pyroscope/server.yml" desc:"location of config file"` LogLevel string `def:"info", desc:"debug|info|warn|error"` // TODO: fix, doesn't see to work BadgerLogLevel string `def:"error", desc:"debug|info|warn|error"` StoragePath string `def:"<installPrefix>/var/lib/pyroscope"` ApiBindAddr string `def:":4040"` CacheDimensionSize int `def:"1000"` CacheDictionarySize int `def:"1000"` CacheSegmentSize int `def:"1000"` CacheTreeSize int `def:"10000"` Multiplier int `def:"10"` MinResolution time.Duration `def:"10s"` MaxResolution time.Duration `def:"8760h"` // 365 days StorageMaxDepth int `skip:"true"` MaxNodesSerialization int `def:"2048"` MaxNodesRender int `def:"2048"` HideApplications []string `def:""` AnalyticsOptOut bool `def:"false" desc:"disables analytics"` }
Click to show internal directories.
Click to hide internal directories.