From ac03e5a8188bf04ace875969c67c2a76da2dd379 Mon Sep 17 00:00:00 2001 From: stuart nelson Date: Fri, 7 Jun 2019 12:19:33 +0200 Subject: [PATCH] Support filtering cli alert queries by receiver This was dropped accidentally in https://github.com/prometheus/alertmanager/pull/1798 Signed-off-by: stuart nelson --- cli/alert_query.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/alert_query.go b/cli/alert_query.go index cec8f098..f74bc091 100644 --- a/cli/alert_query.go +++ b/cli/alert_query.go @@ -96,6 +96,7 @@ func (a *alertQueryCmd) queryAlerts(ctx context.Context, _ *kingpin.ParseContext WithInhibited(&a.inhibited). WithSilenced(&a.silenced). WithUnprocessed(&a.unprocessed). + WithReceiver(&a.receiver). WithFilter(a.matcherGroups) amclient := NewAlertmanagerClient(alertmanagerURL)