-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Metricbeat] Add a switch to the driver definition on SQL module to use pretty names #17378
[Metricbeat] Add a switch to the driver definition on SQL module to use pretty names #17378
Conversation
Pinging @elastic/integrations-services (Team:Services) |
I like what this PR is trying to do, which is to hide the implementation (the driver library name) from the interface (the pretty name). This also gives us the option of swapping out a driver library for another one while not requiring any changes from users. The way this PR is currently implemented, however, a user would be able to specify either |
I thought about doing a map but then if we add a new SQL-based module (ie Clickhouse) we'll need to update the map (which is going to be out of the context of the "other sql module" PR). The alternative is to use a map to names we know which are "ugly" only like |
Fair point, @sayden. Let's keep this as-is then — the user can specify the "pretty" name for the |
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.
LGTM. WFG.
…se pretty names (elastic#17378) (cherry picked from commit cddf0c1)
…finition on SQL module to use pretty names (#17708)
What does this PR do?
SQL module directly passes the driver name to the
sqlx
library. This must match the library name used in Metricbeat:mysql
for MySQL,postgresql
for PostgreSQL butgodror
for Oracle which is ugly in terms of UX.Why is it important?
Docs shouldn't fix UX issues so this PR fixes this in code.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
oracle