From eea361defb50eec7590389ea6131449fb6888130 Mon Sep 17 00:00:00 2001 From: Andrii Chubatiuk Date: Fri, 14 Jun 2024 14:34:23 +0300 Subject: [PATCH] app/vmalert: fixed path prefixes for system routes (#6435) Fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6433 --------- Signed-off-by: hagen1778 Co-authored-by: Roman Khavronenko --- app/vmalert/web.go | 6 +++--- docs/CHANGELOG.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/vmalert/web.go b/app/vmalert/web.go index 43d2562cc..dd01ee953 100644 --- a/app/vmalert/web.go +++ b/app/vmalert/web.go @@ -30,9 +30,9 @@ var ( {fmt.Sprintf("api/v1/alert?%s=&%s=", paramGroupID, paramAlertID), "get alert status by group and alert ID"}, } systemLinks = [][2]string{ - {"/flags", "command-line flags"}, - {"/metrics", "list of application metrics"}, - {"/-/reload", "reload configuration"}, + {"flags", "command-line flags"}, + {"metrics", "list of application metrics"}, + {"-/reload", "reload configuration"}, } navItems = []tpl.NavItem{ {Name: "vmalert", Url: "."}, diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index daa16d605..2d665ba55 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -41,6 +41,7 @@ See also [LTS releases](https://docs.victoriametrics.com/lts-releases/). * BUGFIX: all VictoriaMetrics components: prioritize `-configAuthKey` and `-reloadAuthKey` over `-httpAuth.*` settings. This change aligns behavior of mentioned flags with other auth flags like `-metricsAuthKey`, `-flagsAuthKey`, `-pprofAuthKey`. Check [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6329). * BUGFIX: [vmctl](https://docs.victoriametrics.com/vmctl/): add `--disable-progress-bar` global command-line flag. It can be used for disabling dynamic progress bar for all migration modes. `--vm-disable-progress-bar` command-line flag is deprecated and will be removed in the future releases. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6367). * BUGFIX: [stream aggregation](https://docs.victoriametrics.com/stream-aggregation/): prevent [rate_sum](https://docs.victoriametrics.com/stream-aggregation/#rate_sum) and [rate_avg](https://docs.victoriametrics.com/stream-aggregation/#rate_avg) producing `NaN` results for stale time series. Before, when series matched for aggregation became stale or weren't updated during aggregation interval, the `rate_sum` or `rate_avg` could produce data point with `NaN` value. During visualization, such aggregation results would be displayed as gaps in time series. +* BUGFIX: [vmalert](https://docs.victoriametrics.com/vmalert/): fix path for system links printed on default vmalert's UI page when `-http.pathPrefix` is set. ## [v1.102.0-rc1](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.102.0-rc1)