Sql Input Package - #5167
Conversation
lalit-satapathy
left a comment
There was a problem hiding this comment.
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
|
|
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. |
agithomas
left a comment
There was a problem hiding this comment.
Review feedback shared.
|
LGTM for the first release. |
| 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.
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. |
agithomas
left a comment
There was a problem hiding this comment.
Review comments updated
|
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
* Change cpu and memory calculation in vsphere * SQL Input Package: Draft version * Revert "Change cpu and memory calculation in vsphere" This reverts commit e4dd5a341b7f66066762bbd1aab265f64b849244. * 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.ymlfile.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