mirror of
https://github.com/prometheus/prometheus.git
synced 2025-12-03 16:41:05 +01:00
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:
commit
bb8b611d2c
@ -1,3 +1,5 @@
|
||||
scrape_configs:
|
||||
- job_name: too_long_scrape_interval_test
|
||||
scrape_interval: 10m
|
||||
rule_files:
|
||||
- prometheus-config.rules.good.yml
|
||||
|
||||
3
cmd/promtool/testdata/prometheus-config.rules.good.yml
vendored
Normal file
3
cmd/promtool/testdata/prometheus-config.rules.good.yml
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
groups:
|
||||
- name: rules
|
||||
rules: []
|
||||
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user