mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-25 20:54:41 -08:00
Catch negative staleness delta set on the command line
This commit is contained in:
parent
c5bd178b93
commit
5c41ca84e5
|
@ -262,6 +262,10 @@ func parse(args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if promql.StalenessDelta < 0 {
|
||||
return fmt.Errorf("negative staleness delta: %s", promql.StalenessDelta)
|
||||
}
|
||||
|
||||
if err := parsePrometheusURL(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue