Skip to content

Commit

Permalink
changes port from 8080 to 4040
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Jan 11, 2021
1 parent 02a505f commit cd36317
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ COPY --from=go-builder /opt/pyroscope/bin/pyroscope /usr/bin/pyroscope
RUN chmod 777 /usr/bin/pyroscope

USER pyroscope
EXPOSE 8080/tcp
EXPOSE 4040/tcp
ENTRYPOINT [ "/usr/bin/pyroscope" ]
2 changes: 1 addition & 1 deletion examples/golang/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
pyroscope:
image: "pyroscope/pyroscope:latest"
ports:
- "8080:8080"
- "4040:4040"
command:
- "server"
app:
Expand Down
2 changes: 1 addition & 1 deletion examples/golang/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func slowFunction() {
func main() {
profiler.Start(profiler.Config{
ApplicationName: "simple.golang.app",
ServerAddress: "http://pyroscope:8080", // this will run inside docker-compose, hence `pyroscope` for hostname
ServerAddress: "http://pyroscope:4040", // this will run inside docker-compose, hence `pyroscope` for hostname
})

log.Println("test")
Expand Down
2 changes: 1 addition & 1 deletion examples/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ COPY --from=pyroscope/pyroscope:latest /usr/bin/pyroscope /usr/bin/pyroscope
COPY main.py ./main.py

ENV PYROSCOPE_APPLICATION_NAME=simple.python.app
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:8080/
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/
CMD ["pyroscope", "exec", "python", "main.py"]
2 changes: 1 addition & 1 deletion examples/python/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
pyroscope:
image: "pyroscope/pyroscope:latest"
ports:
- "8080:8080"
- "4040:4040"
command:
- "server"
app:
Expand Down
2 changes: 1 addition & 1 deletion examples/ruby/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ COPY --from=pyroscope/pyroscope:latest /usr/bin/pyroscope /usr/bin/pyroscope
COPY main.rb ./main.rb

ENV PYROSCOPE_APPLICATION_NAME=simple.ruby.app
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:8080/
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/
CMD ["pyroscope", "exec", "ruby", "main.rb"]
2 changes: 1 addition & 1 deletion examples/ruby/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
pyroscope:
image: "pyroscope/pyroscope:latest"
ports:
- "8080:8080"
- "4040:4040"
command:
- "server"
app:
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/profiler/profiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

type Config struct {
ApplicationName string // e.g backend.purchases
ServerAddress string // e.g http://pyroscope.services.internal:8080
ServerAddress string // e.g http://pyroscope.services.internal:4040
}

type Profiler struct {
Expand Down
8 changes: 4 additions & 4 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Agent struct {
// 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:8080" desc:"address of the pyroscope server"`
ServerAddress string `def:"http://localhost:4040" desc:"address of the pyroscope server"`
UpstreamThreads int `def:"4"`
UpstreamRequestTimeout time.Duration `def:"10s"`
UNIXSocketPath string `def:"/var/run/pyroscope-agent.sock" desc:"path to a UNIX socket file"`
Expand All @@ -33,7 +33,7 @@ type Server struct {
BadgerLogLevel string `def:"error", desc:"debug|info|warn|error"`

StoragePath string `def:"/var/lib/pyroscope"`
ApiBindAddr string `def:":8080"`
ApiBindAddr string `def:":4040"`

CacheDimensionSize int `def:"1000"`
CacheDictionarySize int `def:"1000"`
Expand Down Expand Up @@ -61,7 +61,7 @@ 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:8080" desc:"address of the pyroscope server"`
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"`
Expand All @@ -85,7 +85,7 @@ func NewForTests(path string) *Config {
cfg := &Config{
Server: Server{
StoragePath: path,
ApiBindAddr: ":8080",
ApiBindAddr: ":4040",

CacheSegmentSize: 10,
CacheTreeSize: 10,
Expand Down

0 comments on commit cd36317

Please sign in to comment.