Add support for prometheus

This commit is contained in:
9seconds
2018-10-17 12:06:46 +03:00
parent 5f00363da5
commit 9346c11f37
7 changed files with 126 additions and 2 deletions
+5
View File
@@ -15,6 +15,11 @@ func Init(conf *config.Config) error {
}
go client.run()
}
prometheus, err := newPrometheus(conf)
if err != nil {
return errors.Annotate(err, "Cannot initialize prometheus client")
}
go prometheus.run()
go NewStats(conf).start()
go startServer(conf)