Skip to content

Commit

Permalink
revert pinger metrics
Browse files Browse the repository at this point in the history
Signed-off-by: zhaocongqi <[email protected]>
  • Loading branch information
zhaocongqi committed Dec 30, 2024
1 parent 51ca060 commit ed19cf4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/pinger/pinger.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ func CmdMain() {
ctrl.SetLogger(klog.NewKlogr())
ctx := signals.SetupSignalHandler()
if config.Mode == "server" {
go func() {
if config.EnableMetrics {
if config.EnableMetrics {
go func() {
pinger.InitPingerMetrics()
metrics.InitKlogMetrics()
if err := metrics.Run(ctx, nil, util.JoinHostPort("0.0.0.0", config.Port), false, false); err != nil {
util.LogFatalAndExit(err, "failed to run metrics server")
}
}
<-ctx.Done()
}()
<-ctx.Done()
}()
}

if config.EnableVerboseConnCheck {
addr := util.JoinHostPort("0.0.0.0", config.UDPConnCheckPort)
Expand Down

0 comments on commit ed19cf4

Please sign in to comment.