mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-09-22 06:46:34 +08:00
Show metrics icon in sidebar if prometheus-addr is specified
This commit is contained in:
@@ -189,10 +189,11 @@ func muxRouter(opts Options, rc redis.UniversalClient, inspector *asynq.Inspecto
|
||||
|
||||
// Everything else, route to uiAssetsHandler.
|
||||
router.NotFoundHandler = &uiAssetsHandler{
|
||||
rootPath: opts.RootPath,
|
||||
contents: staticContents,
|
||||
staticDirPath: "ui/build",
|
||||
indexFileName: "index.html",
|
||||
rootPath: opts.RootPath,
|
||||
contents: staticContents,
|
||||
staticDirPath: "ui/build",
|
||||
indexFileName: "index.html",
|
||||
prometheusAddr: opts.PrometheusAddress,
|
||||
}
|
||||
return router
|
||||
}
|
||||
|
Reference in New Issue
Block a user