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

postgresql plugin does not produce working database configuration with writer query #971

Closed
ph448 opened this issue Jun 1, 2021 · 0 comments · Fixed by #972
Closed

postgresql plugin does not produce working database configuration with writer query #971

ph448 opened this issue Jun 1, 2021 · 0 comments · Fixed by #972
Labels
bug Something isn't working

Comments

@ph448
Copy link
Contributor

ph448 commented Jun 1, 2021

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.22.1
  • Ruby: 2.7
  • Distribution: Ubuntu
  • Module version: v12.2.0

How to reproduce (e.g Puppet code you use)

Please note I'm synthesizing this as my code uses YAML data and the splat operator to create resources

collectd::plugin::postgresql::database{'metrics':
  name     => 'metrics',
  port     => '5432',
  host     => 'metricshost',
  user     => 'metrics',
  password => 'collectd',
  writer   => 'sqlstore',
  interval => 10,
}
collectd::plugin::postgresql::writer{'sqlstore':
  statement  => 'SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);',
  storerates => 'true',
}

What are you seeing

The manifest using collectd::plugin::postgresql::database runs successfully, but the created file contains

Interval 10

and metrics are only committed once on program startup.

What behaviour did you expect instead

The template should emit

CommitInterval 10

for the plugin to regularly commit collected values.

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 a pull request may close this issue.

2 participants