f-21: code: swap from interface only to full conf
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
9ec6e64327
commit
8a68d3818f
4 changed files with 16 additions and 13 deletions
|
|
@ -36,7 +36,7 @@ func main() {
|
|||
apiAddr := fmt.Sprintf("%s:%d", cfg.Api.Address, cfg.Api.Port)
|
||||
promAddr := fmt.Sprintf("%s:%d", cfg.Prometheus.Address, cfg.Prometheus.Port)
|
||||
|
||||
d := dispatcher.New(q, db, cfg.Interfaces)
|
||||
d := dispatcher.New(q, db, cfg)
|
||||
go agentapi.New(d, db).Start(apiAddr)
|
||||
go promserver.Start(promAddr, registry)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue