RegisterRuntimeConfig registers the endpoints associates with the runtime configuration
(runtimeConfigHandler http.HandlerFunc)
| 276 | |
| 277 | // RegisterRuntimeConfig registers the endpoints associates with the runtime configuration |
| 278 | func (a *API) RegisterRuntimeConfig(runtimeConfigHandler http.HandlerFunc) { |
| 279 | a.indexPage.AddLink(SectionAdminEndpoints, "/runtime_config", "Current Runtime Config (incl. Overrides)") |
| 280 | a.indexPage.AddLink(SectionAdminEndpoints, "/runtime_config?mode=diff", "Current Runtime Config (show only values that differ from the defaults)") |
| 281 | |
| 282 | a.RegisterRoute("/runtime_config", runtimeConfigHandler, false, "GET") |
| 283 | } |
| 284 | |
| 285 | // RegisterDistributor registers the endpoints associated with the distributor. |
| 286 | func (a *API) RegisterDistributor(d *distributor.Distributor, pushConfig distributor.Config, overrides *validation.Overrides, reg prometheus.Registerer) { |
no test coverage detected