From 9f5b5708ff452c42bf51d216f3651a3cb8030c78 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 11 Jan 2023 23:40:57 -0800 Subject: [PATCH] app/vmselect: handle the /custom-dashboards request from /graph/ page in the same way as from the /vmui/ page Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3322 --- app/vmselect/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/vmselect/main.go b/app/vmselect/main.go index be917abcc..01a5748ca 100644 --- a/app/vmselect/main.go +++ b/app/vmselect/main.go @@ -186,6 +186,13 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) bool { return true case strings.HasPrefix(path, "/graph/"): // This is needed for serving /graph URLs from Prometheus datasource in Grafana. + if path == "/graph/custom-dashboards" { + if err := handleVMUICustomDashboards(w); err != nil { + httpserver.Errorf(w, r, "%s", err) + return true + } + return true + } r.URL.Path = strings.Replace(path, "/graph/", "/vmui/", 1) vmuiFileServer.ServeHTTP(w, r) return true