Obey WEB_PREFIX for metrics endpoint

This commit is contained in:
Łukasz Mierzwa
2017-04-23 08:56:53 -07:00
parent b02a88e737
commit acea192a3d
+1
View File
@@ -120,6 +120,7 @@ func main() {
router.SetHTMLTemplate(loadTemplates("templates"))
prom := ginprometheus.NewPrometheus("gin")
prom.MetricsPath = getViewURL("/metrics")
prom.Use(router)
if config.Config.Debug {