-
Notifications
You must be signed in to change notification settings - Fork 444
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
Sql Input Package #5167
Sql Input Package #5167
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.
An ideal scenario for generic sql input is driver is selected by a drop-down list and it provides a sample DSN notation for the driver pre-populated. May be our UI does not support such selections for now?
Can you please verify if the below test case is passed? This is because, i do not find any test cases attached with this PR.
Can there be preconditions / troubleshooting section added such as
|
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.
Review comments added
In the screenshot, the name |
Are there plans to include system testing and it's files & configs as part of this PR? |
This will basically use the SQL beats module. So if we are claiming support doe special characters for our DB's using SQL as input then that holds true for the input package. Whatever SQL module supports, SQL input package will support. We can point out the specific DB's Integrations to provide the complete way of configuring and prerequisites. I don't think we should write details about all the individual DB's here. Linking to the specific DB readme would be better |
System Tests are in plan to be added for Input packages. They are not currently available. |
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.
Review feedback shared.
LGTM for the first release. |
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.
Feedback shared.
Expects a two-column table that looks like a key/value result. The left column is considered a key and the right column the value. This mode generates a single event on each fetch operation. | ||
|
||
table: | ||
Expects any number of columns. This mode generates a single event for each row. |
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.
It does not generate when query does not return any rows. So, suggest to clearly state this.
Suggestion: It may be best to replace or add additional screenshot that shows how to include multiple queries. |
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.
Review comments updated
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.
Approved
Package sql - 0.0.1 containing this change is available at https://epr.elastic.co/search?package=sql |
* Change cpu and memory calculation in vsphere * SQL Input Package: Draft version * Revert "Change cpu and memory calculation in vsphere" This reverts commit 94487c3. * Update Codeowners * Update README * Update README.md * Update README.md * Update README.md * Update README.md
What does this PR do?
This PR creates the SQL Input Package which can be used to retrieve metrics by querying any SQL database.
Checklist
changelog.yml
file.How to test this PR locally
Install the input package through Kibana. Bring up any SQL database. Specify the configurations as mentioned in the README. The metrics should be visible in Kibana
Related issues
Screenshots
Configuration for Input Package
Metrics Retrieval for Mysql database using SQL input Package