diff --git a/pkg/controller/scheduler_metrics.go b/pkg/controller/scheduler_metrics.go index 960db8119..f8c0d8ec0 100644 --- a/pkg/controller/scheduler_metrics.go +++ b/pkg/controller/scheduler_metrics.go @@ -306,6 +306,9 @@ func (c *Controller) runMetricChecks(canary *flaggerv1.Canary) bool { canary.Name, canary.Namespace, metric.Name, val, metric.Threshold) return false } + } else { + c.recordEventErrorf(canary, "Metric query failed for no usable metrics template were configured") + return false } }