From 192dfbfd903eda7e154538dfd140716580b1ff69 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 29 Jul 2021 09:48:43 +0300 Subject: [PATCH] app/vmselect: follow-up for ed95bc95311e0559c62b27503938a027c269dd88 Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1493 --- app/vmselect/main.go | 8 +------- docs/CHANGELOG.md | 3 ++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/vmselect/main.go b/app/vmselect/main.go index c2563f489..7ced1af79 100644 --- a/app/vmselect/main.go +++ b/app/vmselect/main.go @@ -381,13 +381,7 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) bool { return true } return true - case "/api/v1/rules": - // Return dumb placeholder for https://prometheus.io/docs/prometheus/latest/querying/api/#rules - rulesRequests.Inc() - w.Header().Set("Content-Type", "application/json; charset=utf-8") - fmt.Fprintf(w, "%s", `{"status":"success","data":{"groups":[]}}`) - return true - case "prometheus/rules": + case "/api/v1/rules", "/rules": // Return dumb placeholder for https://prometheus.io/docs/prometheus/latest/querying/api/#rules rulesRequests.Inc() w.Header().Set("Content-Type", "application/json; charset=utf-8") diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index d909970f8..f1dec890e 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -9,7 +9,8 @@ sort: 15 * FEATURE: add `-search.maxSamplesPerSeries` command-line flag for limiting the number of raw samples a single query can process per each time series. This option can protect from out of memory errors when a query processes tens of millions of raw samples per series. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1067). * FEATURE: add `-search.maxSamplesPerQuery` command-line flag for limiting the number of raw samples a single query can process across all the time series. This option can protect from heavy queries, which select too big number of raw samples. Thanks to @jiangxinlingdu for [the initial pull request](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/1478). -* BUGFIX: vmbackup: automatically set default `us-east1` S3 region if it is missing. This should simplify using S3-compatible services such as MinIO for backups. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1449). +* BUGFIX: vmselect: return dummy response at `/rules` page in the same way as for `/api/v1/rules` page. The `/rules` page is requested by Grafana 8. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1493) for details. +* BUGFIX: vmbackup: automatically set default `us-east-1` S3 region if it is missing. This should simplify using S3-compatible services such as MinIO for backups. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1449). * BUGFIX: vmselect: prevent from possible deadlock when multiple `target` query args are passed to [Graphite Render API](https://docs.victoriametrics.com/#graphite-render-api-usage). * BUGFIX: return series with `a op b` labels and `N` values for `(a op b) default N` if `(a op b)` returns series with all NaN values. Previously such series were removed.