diff --git a/rules/alerting.go b/rules/alerting.go index 54ee31d74..c82bc9640 100644 --- a/rules/alerting.go +++ b/rules/alerting.go @@ -74,7 +74,7 @@ func (s AlertState) String() string { case StateFiring: return "firing" } - panic(errors.Errorf("unknown alert state: %s", s.String())) + panic(errors.Errorf("unknown alert state: %d", s)) } // Alert is the user-level representation of a single instance of an alerting rule.