Merge pull request #1915 from prometheus/stn/cli-filter-alerts-by-receiver

Support filtering cli alert queries by receiver
This commit is contained in:
stuart nelson 2019-06-07 13:44:48 +02:00 committed by GitHub
commit 037ae5ecc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)