File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ func New(cfg *config.Config) *Agent {
26
26
activeProfiles : make (map [int ]* ProfileSession ),
27
27
u : remote .New (remote.RemoteConfig {
28
28
UpstreamThreads : cfg .Agent .UpstreamThreads ,
29
- UpstreamAddress : cfg .Agent .UpstreamAddress ,
29
+ UpstreamAddress : cfg .Agent .ServerAddress ,
30
30
UpstreamRequestTimeout : cfg .Agent .UpstreamRequestTimeout ,
31
31
}),
32
32
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ type Agent struct {
20
20
// AgentCMD []string
21
21
AgentSpyName string `desc:"name of the spy you want to use"` // TODO: add options
22
22
AgentPID int `def:"-1" desc:"pid of the process you want to spy on"`
23
- UpstreamAddress string `def:"http://localhost:8080" desc:"address of the pyroscope server"`
23
+ ServerAddress string `def:"http://localhost:8080" desc:"address of the pyroscope server"`
24
24
UpstreamThreads int `def:"4"`
25
25
UpstreamRequestTimeout time.Duration `def:"10s"`
26
26
UNIXSocketPath string `def:"/var/run/pyroscope-agent.sock" desc:"path to a UNIX socket file"`
@@ -59,7 +59,7 @@ type Exec struct {
59
59
SpyName string `def:"auto"`
60
60
ApplicationName string `def:"" desc:"application name used when uploading profiling data"`
61
61
DetectSubprocesses bool `def:"true"`
62
- UpstreamAddress string `def:"http://localhost:8080" desc:"address of the pyroscope server"`
62
+ ServerAddress string `def:"http://localhost:8080" desc:"address of the pyroscope server"`
63
63
UpstreamThreads int `def:"4" desc:"number of upload threads"`
64
64
UpstreamRequestTimeout time.Duration `def:"10s"`
65
65
NoLogging bool `def:"false" desc:"disables logging from pyroscope"`
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ func Cli(cfg *config.Config, args []string) error {
62
62
return err
63
63
}
64
64
u := remote .New (remote.RemoteConfig {
65
- UpstreamAddress : cfg .Exec .UpstreamAddress ,
65
+ UpstreamAddress : cfg .Exec .ServerAddress ,
66
66
UpstreamThreads : cfg .Exec .UpstreamThreads ,
67
67
UpstreamRequestTimeout : cfg .Exec .UpstreamRequestTimeout ,
68
68
})
You can’t perform that action at this time.
0 commit comments