diff --git a/cli/alert_query.go b/cli/alert_query.go index f1a5f813cd..e5f5ba6ac8 100644 --- a/cli/alert_query.go +++ b/cli/alert_query.go @@ -86,7 +86,7 @@ func (a *alertQueryCmd) queryAlerts(ctx context.Context, _ *kingpin.ParseContext a.matcherGroups[0] = fmt.Sprintf("alertname=%s", strconv.Quote(m)) } } - + // If no selector was passed, default to showing active alerts. if !a.silenced && !a.inhibited && !a.active && !a.unprocessed { a.active = true