Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit cf5830a

Browse files
author
Murat Kabilov
committed
temporary remove reload config functionality
1 parent a0324fe commit cf5830a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

main.go

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,7 @@ loop:
9393
case syscall.SIGTERM:
9494
break loop
9595
case syscall.SIGHUP:
96-
log.Printf("reloading config")
97-
cfg := config.New(*configFile)
98-
if err := cfg.Load(); err != nil {
99-
log.Printf("could not reload config: %v", err)
100-
break
101-
}
102-
if ok := prometheus.Unregister(collector); !ok {
103-
log.Printf("could not unregister collector")
104-
break
105-
}
106-
collector.LoadConfig(cfg)
107-
if err := prometheus.Register(collector); err != nil {
108-
log.Printf("could not register collector: %v", err)
109-
}
96+
log.Printf("reloading config. to be implemented")
11097
default:
11198
log.Printf("received signal: %v", sig)
11299
}

0 commit comments

Comments
 (0)