-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable multiple label values (#115)
* Don't support multiple label values with the Silences API * Do not overwrite existing filter with multi-values (Alertmanager) When the original filter query parameter already includes the enforced label, the proxy should preserve it as it indicates that the user wants to filter down the list of silences/alerts. * Do not overwrite existing filter when multi-values (Prometheus) When prom-label-proxy is configured with multiple label values, it should preserve the existing matchers because users actually want to return results for a subset of the metrics. In practice when configured with `namespace=~"bar|foo"`, the query `up{namespace="foo"}` is translated into `up{namespace="foo",namespace=~"bar|foo"}` instead of `{namespace=~"bar|foo"}`. --------- Signed-off-by: Kirchen99 <latias_latios@126.com> Signed-off-by: Kirchen99 <9981745+Kirchen99@users.noreply.github.com> Signed-off-by: Simon Pasquier <spasquie@redhat.com> Co-authored-by: Simon Pasquier <spasquie@redhat.com>
- Loading branch information
1 parent
c9b0c84
commit e4829ba
Showing
13 changed files
with
950 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
prom-label-proxy | ||
|
||
.idea | ||
.envrc | ||
prom-label-proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.