Enable profiler-address to be configured (#9311)
Signed-off-by: aimuz <mr.imuz@gmail.com> Signed-off-by: aimuz <mr.imuz@gmail.com>
This commit is contained in:
parent
49bd5dd763
commit
15c4078032
4 changed files with 9 additions and 4 deletions
|
|
@ -82,8 +82,7 @@ func main() {
|
|||
mc.Start(conf.ValidationWebhook)
|
||||
|
||||
if conf.EnableProfiling {
|
||||
// TODO: Turn Profiler address configurable via flags
|
||||
go metrics.RegisterProfiler("127.0.0.1", nginx.ProfilerPort)
|
||||
go metrics.RegisterProfiler(nginx.ProfilerAddress, nginx.ProfilerPort)
|
||||
}
|
||||
|
||||
ngx := controller.NewNGINXController(conf, mc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue