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_extensible plugin does not quote string values #1600

Closed
phemmer opened this issue Aug 8, 2016 · 0 comments
Closed

postgresql_extensible plugin does not quote string values #1600

phemmer opened this issue Aug 8, 2016 · 0 comments

Comments

@phemmer
Copy link
Contributor

phemmer commented Aug 8, 2016

Bug report

Relevant telegraf.conf:

[[inputs.postgresql_extensible]]
    [[inputs.postgresql_extensible.query]]
        sqlquery = "select 'foo' as bar"

System info:

Version: current master (49988b1)

Steps to reproduce:

  1. telegraf -config telegraf.conf -test

Expected behavior:

* Plugin: postgresql_extensible, Collection 1
> postgresql,host=x bar="foo" 1470627087634734894

Actual behavior:

* Plugin: postgresql_extensible, Collection 1
> postgresql,host=x bar=foo 1470627087634734894

Additional information:

The plugin needs to output text values as strings, not byte arrays, then they'll be encoded correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant