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

Emit CommitInterval when writer is configured for database #972

Merged
merged 2 commits into from Jun 29, 2021

Conversation

ph448
Copy link
Contributor

@ph448 ph448 commented Jun 1, 2021

Pull Request (PR) description

Previously, databases configured with a writer query would not regularly commit collected data.
This PR makes the postgresql configuration template emit the stanza CommitInterval instead of just Interval when a database is configured with a writer query, fixing the problem.

This Pull Request (PR) fixes the following issues

Fixes #971

ph448 added 2 commits June 1, 2021 06:54
According to collectd documentation if a writer is configured for a
database one needs to use the CommitInterval stanza to specify how
frequently the long-running query will commit collected metrics.
@bastelfreak bastelfreak added the bug Something isn't working label Jun 29, 2021
@bastelfreak bastelfreak merged commit 23274fd into voxpupuli:master Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

postgresql plugin does not produce working database configuration with writer query
3 participants