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

Connect to Redshift to extract custom data and build metrics to push to Influx #2683

Closed
anilkulkarni87 opened this issue Apr 18, 2017 · 4 comments
Labels
area/postgresql feature request Requests for new plugin and for new features to existing plugins

Comments

@anilkulkarni87
Copy link

anilkulkarni87 commented Apr 18, 2017

Feature Request

The current postgesql_extensible doesnt have the ability to conect to redshift and transform query results to Line protocol to write to Influx.

Proposal:

Create an input plugin to connect to redshift and execute queries and transform each row to Line protocol basedon the measurements and tags provided in the .conf file.

Current behavior:

postgreaql_extensible plugin does nto connect to Redshift. While trying to use the same, it doesnt throw the right error.
It displays the error as below for any query being run (eg. Select sysdate)
2017-04-18T20:38:00Z E! ERROR in input [inputs.postgresql_extensible]: sql: no rows in result set

Desired behavior:

The below info can be provided the in the .conf file Note that there is 'version'.
[[inputs.redshiftsql.query]]
sqlquery="select sysdate"
withdbname=false
tagvalue=""
measurement=""

Use case:

This helps in building custom metric out of Redshift data. AWS doesnt provide the ability to monitor at a table a level on the console. This plugin can be used to monitor any custom metrics defined based on the data inside.

Tried creating the below script which might have errors but i have not been able to build the telegraf binaries and do some tests. The below script has very minor changes compared to the postgresql_extensible plugin.

redshift_sql.txt

@anilkulkarni87 anilkulkarni87 changed the title Connect to Redshift to extract custom data and build metrics to push to Influx Connect to Redshift to extract custom data and build metrics to push to Influx #featurerequests Apr 18, 2017
@anilkulkarni87 anilkulkarni87 changed the title Connect to Redshift to extract custom data and build metrics to push to Influx #featurerequests Connect to Redshift to extract custom data and build metrics to push to Influx #featurerequest Apr 18, 2017
@anilkulkarni87 anilkulkarni87 changed the title Connect to Redshift to extract custom data and build metrics to push to Influx #featurerequest Connect to Redshift to extract custom data and build metrics to push to Influx Apr 18, 2017
@danielnelson danielnelson added the feature request Requests for new plugin and for new features to existing plugins label Apr 20, 2017
@anilkulkarni87
Copy link
Author

@danielnelson Any luck on this?

@danielnelson
Copy link
Contributor

I'm in favor of having Redshift support, but any plugin would have to be contributed by the community or through sales.

@danielnelson
Copy link
Contributor

jackc/pgx#321

@tfoldi
Copy link
Contributor

tfoldi commented Dec 27, 2020

I think you can safely close this one: we are using telegraf with redshift in production since a while.

So it does work with redshift.

@powersj powersj closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/postgresql feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

No branches or pull requests

4 participants