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

@ -29,8 +29,9 @@ var (
CertFile: "",
KeyFile: "",
},
InteractiveStderr: true,
TemplateJobFile: "",
InteractiveStderr: true,
TemplateJobFile: "",
PrewarmingPoolAlertThreshold: 0,
},
Nomad: Nomad{
Enabled: true,
@ -81,12 +82,13 @@ var (
// server configures the Poseidon webserver.
type server struct {
Address string
Port int
Token string
TLS TLS
InteractiveStderr bool
TemplateJobFile string
Address string
Port int
Token string
TLS TLS
InteractiveStderr bool
TemplateJobFile string
PrewarmingPoolAlertThreshold float64
}
// URL returns the URL of the Poseidon webserver.