Use mtg metrics only for prometheus endpoint

This commit is contained in:
9seconds
2018-11-01 18:23:36 +03:00
parent 4695a0c433
commit d277a2975a
3 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func Init(conf *config.Config) error {
go prometheus.run()
go NewStats(conf).start()
go startServer(conf)
go startServer(conf, prometheus.getHTTPHandler())
return nil
}