提交 5c41ca84 编写于 作者: B beorn7

Catch negative staleness delta set on the command line

上级 c5bd178b
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册