mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-17 20:05:17 +00:00
Support filtering cli alert queries by receiver
This was dropped accidentally in https://github.com/prometheus/alertmanager/pull/1798 Signed-off-by: stuart nelson <stuartnelson3@gmail.com>
This commit is contained in:
parent
588b4dd17b
commit
ac03e5a818
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user