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

Allow specifying wal truncate frequencies per integration #403

Merged
merged 2 commits into from
Feb 17, 2021

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Feb 9, 2021

PR Description

Adds wal_truncate_frequency as a common integration setting, allowing to override the forced default.

Which issue(s) this PR fixes

Closes #390

Notes to the Reviewer

Blocked by #401.

PR Checklist

  • CHANGELOG updated
  • Documentation added
  • Tests updated

@@ -206,7 +206,7 @@ func (m *Manager) runIntegration(ctx context.Context, cfg Config, i Integration)
// Apply the config so an instance is launched to scrape our integration.
instanceConfig := m.instanceConfigForIntegration(cfg, i)
if err := m.im.ApplyConfig(instanceConfig); err != nil {
level.Error(m.logger).Log("msg", "failed to apply integration. integration will not run. THIS IS A BUG!", "err", err, "integration", cfg.Name())
level.Error(m.logger).Log("msg", "failed to apply integration. integration will not run", "err", err, "integration", cfg.Name())
Copy link
Member Author

Choose a reason for hiding this comment

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

This isn't a bug :) If you provide an invalid scrape interval or bad WAL truncation frequency you can run into this.

@rfratto rfratto merged commit 6587db5 into grafana:master Feb 17, 2021
@rfratto rfratto deleted the wal-truncate-in-integrations branch February 17, 2021 14:48
@mattdurham mattdurham mentioned this pull request Sep 7, 2021
3 tasks
mattdurham pushed a commit that referenced this pull request Nov 11, 2021
* allow specifying wal truncate frequencies per integration

* rebase and fix default time in docs
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Apr 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unable to set wal_truncate_frequency (greater than scrape_frequency)
2 participants