Obey WEB_PREFIX for metrics endpoint

This commit is contained in:
Łukasz Mierzwa
2017-04-22 21:20:45 -07:00
parent b02a88e737
commit acea192a3d

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 {