mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Don't skip recording rule errors
This commit is contained in:
parent
6293f3a374
commit
26eb3ac2f8
|
@ -55,6 +55,10 @@ func (rule RecordingRule) eval(timestamp model.Time, engine *promql.Engine) (mod
|
||||||
result = query.Exec()
|
result = query.Exec()
|
||||||
vector model.Vector
|
vector model.Vector
|
||||||
)
|
)
|
||||||
|
if result.Err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
switch result.Value.(type) {
|
switch result.Value.(type) {
|
||||||
case model.Vector:
|
case model.Vector:
|
||||||
vector, err = result.Vector()
|
vector, err = result.Vector()
|
||||||
|
|
Loading…
Reference in a new issue