Merge remote-tracking branch 'origin/release-3.7' into krajo/merge-release-3.7-pre3-to-main

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
György Krajcsovits 2025-10-29 14:32:42 +01:00
commit bb8b611d2c
No known key found for this signature in database
GPG Key ID: 47A8F9CE80FD7C7F
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,5 @@
scrape_configs:
- job_name: too_long_scrape_interval_test
scrape_interval: 10m
rule_files:
- prometheus-config.rules.good.yml

View File

@ -0,0 +1,3 @@
groups:
- name: rules
rules: []

View File

@ -418,12 +418,12 @@ func New(logger *slog.Logger, o *Options) *Handler {
readyf := h.testReady
router.Get("/", func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, path.Join(o.RoutePrefix, homePage), http.StatusFound)
http.Redirect(w, r, path.Join(o.ExternalURL.Path, homePage), http.StatusFound)
})
if !o.UseOldUI {
router.Get("/graph", func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, path.Join(o.RoutePrefix, "/query?"+r.URL.RawQuery), http.StatusFound)
http.Redirect(w, r, path.Join(o.ExternalURL.Path, "/query?"+r.URL.RawQuery), http.StatusFound)
})
}