-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Generic SQL input #8735
Generic SQL input #8735
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for the pull request!
🤝 ✒️ Just a reminder that the CLA has not yet been signed, and we'll need it before merging. Please sign the CLA when you get a chance, then post a comment here saying !signed-cla
5e21e55
to
e411f69
Compare
!signed-cla |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A work of art. well done
!signed-cla |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤝 ✒️ Just a reminder that the CLA has not yet been signed, and we'll need it before merging. Please sign the CLA when you get a chance, then post a comment here saying !signed-cla
!signed-cla |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤝 ✒️ Just a reminder that the CLA has not yet been signed, and we'll need it before merging. Please sign the CLA when you get a chance, then post a comment here saying !signed-cla
For running the tests, please create a If those preparations are successful, run |
!signed-cla |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤝 ✅ CLA has been signed. Thank you!
!retry-checks |
@srebhan Hi Sven, any chance you could get this pull completed so SQL queries can be run as a Telegraf input please ? |
Looks like new artifacts were built from this PR. Get them here!Artifact URLs |
@aslgithub your wish is my command. ;-P |
@srebhan nice one, thank you, much appreciated :-) |
@srebhan It appears to work as expected in that I am able to connect to the SQL server and complete a basic query that does a select count from a table to return an integer. Specifying a database in the dsn string within inputs.sql doesn't seem to have any impact? Would it be possible to support the tags feature at the query level please? however it doesn't work at the query level : This would be really helpful as I can have each query tagging its data as appropriate under the same connection. Thanks, |
@aslgithub nice to hear it's at least not failing completely! :-) |
@srebhan Sorry, I'm going to admit doing a PR to add the tag would be beyond me appreciate your support in doing this. Thanks, |
… explicit type conversions for fields.
Looks like new artifacts were built from this PR. Get them here!Artifact URLs |
Looks like new artifacts were built from this PR. Get them here!Artifact URLs |
@aslgithub give master a test if you can... Thanks to @reimda this plugin will (hopefully) make it into 1.19 |
(cherry picked from commit 908ad2f)
Required for all PRs:
This PR adds a generic SQL input plugin that can be used to query SQL servers and convert the returned data into metrics. In a first attempt only a handful of drivers are supported (see SQL_DRIVERS_INPUT.md) but there are more on the list.
Currently a test-suite is missing, therefore I'm marking this as DRAFT. Reviews, comments, suggestions and tests are welcome!
Takeover of PR #2785
Fixes #352