Add Prewarming Pool Alert

that checks for every environment if the filled share of the prewarmin pool is at least the specified threshold.
This commit is contained in:
Maximilian Paß
2023-10-31 13:06:53 +01:00
committed by Sebastian Serth
parent 1be3ce5ae1
commit c46a09eeae
9 changed files with 101 additions and 22 deletions

View File

@ -46,7 +46,7 @@ func configureV1Router(router *mux.Router,
w.WriteHeader(http.StatusNotFound)
})
v1 := router.PathPrefix(BasePath).Subrouter()
v1.HandleFunc(HealthPath, Health).Methods(http.MethodGet).Name(HealthPath)
v1.HandleFunc(HealthPath, Health(environmentManager)).Methods(http.MethodGet).Name(HealthPath)
v1.HandleFunc(VersionPath, Version).Methods(http.MethodGet).Name(VersionPath)
runnerController := &RunnerController{manager: runnerManager}