Merge pull request #1915 from prometheus/stn/cli-filter-alerts-by-receiver
Support filtering cli alert queries by receiver
This commit is contained in:
commit
037ae5ecc6
|
@ -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