Skip to content

Commit cd36317

Browse files
committed
changes port from 8080 to 4040
1 parent 02a505f commit cd36317

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ COPY --from=go-builder /opt/pyroscope/bin/pyroscope /usr/bin/pyroscope
119119
RUN chmod 777 /usr/bin/pyroscope
120120

121121
USER pyroscope
122-
EXPOSE 8080/tcp
122+
EXPOSE 4040/tcp
123123
ENTRYPOINT [ "/usr/bin/pyroscope" ]

examples/golang/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
pyroscope:
55
image: "pyroscope/pyroscope:latest"
66
ports:
7-
- "8080:8080"
7+
- "4040:4040"
88
command:
99
- "server"
1010
app:

examples/golang/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func slowFunction() {
2323
func main() {
2424
profiler.Start(profiler.Config{
2525
ApplicationName: "simple.golang.app",
26-
ServerAddress: "http://pyroscope:8080", // this will run inside docker-compose, hence `pyroscope` for hostname
26+
ServerAddress: "http://pyroscope:4040", // this will run inside docker-compose, hence `pyroscope` for hostname
2727
})
2828

2929
log.Println("test")

examples/python/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ COPY --from=pyroscope/pyroscope:latest /usr/bin/pyroscope /usr/bin/pyroscope
66
COPY main.py ./main.py
77

88
ENV PYROSCOPE_APPLICATION_NAME=simple.python.app
9-
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:8080/
9+
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/
1010
CMD ["pyroscope", "exec", "python", "main.py"]

examples/python/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
pyroscope:
55
image: "pyroscope/pyroscope:latest"
66
ports:
7-
- "8080:8080"
7+
- "4040:4040"
88
command:
99
- "server"
1010
app:

examples/ruby/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ COPY --from=pyroscope/pyroscope:latest /usr/bin/pyroscope /usr/bin/pyroscope
66
COPY main.rb ./main.rb
77

88
ENV PYROSCOPE_APPLICATION_NAME=simple.ruby.app
9-
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:8080/
9+
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/
1010
CMD ["pyroscope", "exec", "ruby", "main.rb"]

examples/ruby/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
pyroscope:
55
image: "pyroscope/pyroscope:latest"
66
ports:
7-
- "8080:8080"
7+
- "4040:4040"
88
command:
99
- "server"
1010
app:

pkg/agent/profiler/profiler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
type Config struct {
1313
ApplicationName string // e.g backend.purchases
14-
ServerAddress string // e.g http://pyroscope.services.internal:8080
14+
ServerAddress string // e.g http://pyroscope.services.internal:4040
1515
}
1616

1717
type Profiler struct {

pkg/config/config.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type Agent struct {
2020
// AgentCMD []string
2121
AgentSpyName string `desc:"name of the spy you want to use"` // TODO: add options
2222
AgentPID int `def:"-1" desc:"pid of the process you want to spy on"`
23-
ServerAddress string `def:"http://localhost:8080" desc:"address of the pyroscope server"`
23+
ServerAddress string `def:"http://localhost:4040" desc:"address of the pyroscope server"`
2424
UpstreamThreads int `def:"4"`
2525
UpstreamRequestTimeout time.Duration `def:"10s"`
2626
UNIXSocketPath string `def:"/var/run/pyroscope-agent.sock" desc:"path to a UNIX socket file"`
@@ -33,7 +33,7 @@ type Server struct {
3333
BadgerLogLevel string `def:"error", desc:"debug|info|warn|error"`
3434

3535
StoragePath string `def:"/var/lib/pyroscope"`
36-
ApiBindAddr string `def:":8080"`
36+
ApiBindAddr string `def:":4040"`
3737

3838
CacheDimensionSize int `def:"1000"`
3939
CacheDictionarySize int `def:"1000"`
@@ -61,7 +61,7 @@ type Exec struct {
6161
SpyName string `def:"auto"`
6262
ApplicationName string `def:"" desc:"application name used when uploading profiling data"`
6363
DetectSubprocesses bool `def:"true"`
64-
ServerAddress string `def:"http://localhost:8080" desc:"address of the pyroscope server"`
64+
ServerAddress string `def:"http://localhost:4040" desc:"address of the pyroscope server"`
6565
UpstreamThreads int `def:"4" desc:"number of upload threads"`
6666
UpstreamRequestTimeout time.Duration `def:"10s"`
6767
NoLogging bool `def:"false" desc:"disables logging from pyroscope"`
@@ -85,7 +85,7 @@ func NewForTests(path string) *Config {
8585
cfg := &Config{
8686
Server: Server{
8787
StoragePath: path,
88-
ApiBindAddr: ":8080",
88+
ApiBindAddr: ":4040",
8989

9090
CacheSegmentSize: 10,
9191
CacheTreeSize: 10,

0 commit comments

Comments
 (0)