(w io.Writer, r *http.Request)
| 375 | } |
| 376 | |
| 377 | func (t *App) writeRuntimeConfig(w io.Writer, r *http.Request) error { |
| 378 | // Querier and query-frontend services do not run the overrides module |
| 379 | if t.Overrides == nil { |
| 380 | _, err := w.Write([]byte(fmt.Sprintf("overrides module not loaded in %s\n", t.cfg.Target))) |
| 381 | return err |
| 382 | } |
| 383 | return t.Overrides.WriteStatusRuntimeConfig(w, r) |
| 384 | } |
| 385 | |
| 386 | func (t *App) statusHandler() http.HandlerFunc { |
| 387 | return func(w http.ResponseWriter, r *http.Request) { |
no test coverage detected