Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making GCInterval Configurable #5550

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Conversation

krishnateja325
Copy link
Contributor

@krishnateja325 krishnateja325 commented Sep 6, 2023

What this PR does:

  • Making GCInterval Configurable
  • Added the flag -alertmanager.alerts-gc-interval to configure alert manager Garbage collection Interval.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@krishnateja325 krishnateja325 force-pushed the GCConfig branch 3 times, most recently from 7b3fde6 to 1d362f4 Compare September 6, 2023 19:23
@krishnateja325 krishnateja325 marked this pull request as ready for review September 6, 2023 19:45
Copy link
Contributor

@emanlodovice emanlodovice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -119,7 +120,7 @@ func (cfg *MultitenantAlertmanagerConfig) RegisterFlags(f *flag.FlagSet) {

f.BoolVar(&cfg.EnableAPI, "experimental.alertmanager.enable-api", false, "Enable the experimental alertmanager config api.")
f.IntVar(&cfg.APIConcurrency, "alertmanager.api-concurrency", 0, "Maximum number of concurrent GET API requests before returning an error.")

f.DurationVar(&cfg.GCInterval, "alertmanager.gc-interval", 30*time.Minute, "Garbage collection Interval")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flag and the configuration name is kind of confusing. Can we make the name and flag description more informative like alertmanager.alerts-gc-interval

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, I will modify it.

Signed-off-by: Krishna Teja Puttagunta <krishnateja325@gmail.com>
@yeya24 yeya24 merged commit 94192ff into cortexproject:master Sep 6, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants