Merge pull request #71 from cloudflare/metrics-docs

Obey WEB_PREFIX for metrics endpoint
This commit is contained in:
Łukasz Mierzwa
2017-04-23 08:58:12 -07:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -14,6 +14,12 @@ to alert data, therefore safe to be accessed by wider audience.
Alertmanager's API isn't stable yet and can change between releases.
unsee currently supports Alertmanager `0.4` and `0.5`.
## Metrics
unsee process metrics are accessible under `/metrics` path by default.
If you set the [WEB_PREFIX](#web_prefix) option a path relative to it will be
used.
## Known issues
* When a new alert is triggered unsee might show it for a few minutes even if
+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 {