From 26eb3ac2f87b20c6fbac2b13eac3f130e9fb70b7 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Tue, 12 Jan 2016 10:26:06 +0100 Subject: [PATCH] Don't skip recording rule errors --- rules/recording.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rules/recording.go b/rules/recording.go index 070b43820..698a08323 100644 --- a/rules/recording.go +++ b/rules/recording.go @@ -55,6 +55,10 @@ func (rule RecordingRule) eval(timestamp model.Time, engine *promql.Engine) (mod result = query.Exec() vector model.Vector ) + if result.Err != nil { + return nil, err + } + switch result.Value.(type) { case model.Vector: vector, err = result.Vector()