add some docs for telemetry server

move pprof to the telemetry server only
This commit is contained in:
Nicola Murino
2020-12-18 09:47:22 +01:00
parent 6d895843dc
commit 143df87fee
10 changed files with 31 additions and 29 deletions

View File

@@ -26,7 +26,7 @@ var (
// Conf telemetry server configuration.
type Conf struct {
// The port used for serving HTTP requests. 0 disable the HTTP server. Default: 8080
// The port used for serving HTTP requests. 0 disable the HTTP server. Default: 10000
BindPort int `json:"bind_port" mapstructure:"bind_port"`
// The address to listen on. A blank value means listen on all available network interfaces. Default: "127.0.0.1"
BindAddress string `json:"bind_address" mapstructure:"bind_address"`
@@ -42,7 +42,7 @@ func (c Conf) Initialize(enableProfiler bool) error {
ReadTimeout: 60 * time.Second,
WriteTimeout: 60 * time.Second,
IdleTimeout: 120 * time.Second,
MaxHeaderBytes: 1 << 16, // 64KB
MaxHeaderBytes: 1 << 14, // 16KB
}
return httpServer.ListenAndServe()
}