From e83b96366fb43c132c2b04f74493fc5872109cec Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 31 May 2022 12:27:54 +0300 Subject: [PATCH] docs/CHANGELOG.md: follow-up after 11f91532c5a154c6cb4908cd09fd20a30943da18 See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2594 --- app/vmagent/main.go | 3 +++ app/vmalert/web.go | 3 +++ docs/CHANGELOG.md | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/vmagent/main.go b/app/vmagent/main.go index 09c372d1f..311296cca 100644 --- a/app/vmagent/main.go +++ b/app/vmagent/main.go @@ -63,6 +63,9 @@ var ( graphiteServer *graphiteserver.Server opentsdbServer *opentsdbserver.Server opentsdbhttpServer *opentsdbhttpserver.Server +) + +var ( //go:embed static staticFiles embed.FS staticServer = http.FileServer(http.FS(staticFiles)) diff --git a/app/vmalert/web.go b/app/vmalert/web.go index bdf85ac1e..70b58b179 100644 --- a/app/vmalert/web.go +++ b/app/vmalert/web.go @@ -22,6 +22,9 @@ var ( once = sync.Once{} apiLinks [][2]string navItems []tpl.NavItem +) + +var ( //go:embed static staticFiles embed.FS staticServer = http.FileServer(http.FS(staticFiles)) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index d1a09b065..57f00d8d2 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -15,8 +15,8 @@ The following tip changes can be tested by building VictoriaMetrics components f ## tip -* FEATURE: [vmagent](https://docs.victoriametrics.com/vmagent.html): embed boostrap js from CDN into binary. Previously web API was broken without internet connection. See [shis issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2594) -* FEATURE: [vmalert](https://docs.victoriametrics.com/vmalert.html): embed boostrap js from CDN into binary. Previously `/targets` API was broken without internet connection. See [shis issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2594) +* FEATURE: [vmagent](https://docs.victoriametrics.com/vmagent.html): remove dependency on Internet access in `http://vmagent:8429/targets` page. Previously the page layout was broken without Internet access. See [shis issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2594). +* FEATURE: [vmalert](https://docs.victoriametrics.com/vmalert.html): remove dependency on Internet access in [web API pages](https://docs.victoriametrics.com/vmalert.html#web). Previously the functionality and the layout of these pages was broken without Internet access. See [shis issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2594). * FEATURE: [vmagent](https://docs.victoriametrics.com/vmagent.html): expose `/api/v1/status/config` endpoint in the same way as Prometheus does. See [these docs](https://prometheus.io/docs/prometheus/latest/querying/api/#config). * FEATURE: add ability to change the `indexdb` rotation timezone offset via `-retentionTimezoneOffset` command-line flag. Previously it was performed at 4am UTC time. This could lead to performance degradation in the middle of the day when VictoriaMetrics runs in time zones located too far from UTC. Thanks to @cnych for [the pull request](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/2574). * FEATURE: [vmagent](https://docs.victoriametrics.com/vmagent.html): add `-promscrape.suppressScrapeErrorsDelay` command-line flag, which can be used for delaying and aggregating the logging of per-target scrape errors. This may reduce the amounts of logs when `vmagent` scrapes many unreliable targets. See [this feature request](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2575). Thanks to @jelmd for [the initial implementation](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/2576).