-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gate receiver names behind a feature flag
Alertmanager doesn't actually have a feature flag system yet, so this invents the universe, mostly by cribbing off the Prometheus model. Here we introduce a new CLI flag `--enable-feature` that we parse into a new `featureConfigs` struct. We also update the PipelineBuilder to take that flag and pass it through the metrics infrastructure. This also required a bit of deduplication to make finding the correct labelset (with or without the receiver name) easier in every place that it's used, and updating the tests to use that same mechanism. Signed-off-by: sinkingpoint <colin@quirl.co.nz>
- Loading branch information
1 parent
b240edc
commit 769396f
Showing
3 changed files
with
97 additions
and
59 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
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