mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-18 04:15:24 +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).
|
WithInhibited(&a.inhibited).
|
||||||
WithSilenced(&a.silenced).
|
WithSilenced(&a.silenced).
|
||||||
WithUnprocessed(&a.unprocessed).
|
WithUnprocessed(&a.unprocessed).
|
||||||
|
WithReceiver(&a.receiver).
|
||||||
WithFilter(a.matcherGroups)
|
WithFilter(a.matcherGroups)
|
||||||
|
|
||||||
amclient := NewAlertmanagerClient(alertmanagerURL)
|
amclient := NewAlertmanagerClient(alertmanagerURL)
|
||||||
|
Loading…
Reference in New Issue
Block a user