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

fix(inputs.mysql): MariaDB example to include mariadb_dialect (#16159) #16160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grooverdan
Copy link

Summary

Docker-compose example for inputs.mysql for the MariaDB didn't include mariadb_dialect = true. As all maintained versions of MariaDB are 10.5 it seemed prudent to include.

Also it was possible for telegraf to start before MariaDB was ready. Use the healthcheck mariadb has to ensure that docker compose orders this correctly.

The mariadb container can take straight command line arguments and this will pass though to the mariadb server (mariadbd).

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #16159

…data#16159)

Also use MariaDB names and healthcheck to ensure running
before telegraf started.
@telegraf-tiger
Copy link
Contributor

telegraf-tiger bot commented Nov 7, 2024

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

@telegraf-tiger telegraf-tiger bot added area/mysql fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Nov 7, 2024
@grooverdan
Copy link
Author

!signed-cla

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grooverdan I would really like to get rid of this dev subdir as we do have integration tests instead of this manual testing... Do you think there is anything that is worth preserving?

@srebhan srebhan self-assigned this Nov 7, 2024
@grooverdan
Copy link
Author

Sure, can you point me towards the integration tests?

@srebhan
Copy link
Member

srebhan commented Nov 7, 2024

Basically every test in mysql_test.go having a Integration suffix e.g. this one...

@srebhan srebhan added the waiting for response waiting for response from contributor label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mysql fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins waiting for response waiting for response from contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(inputs.mysql) MariaDB example in dev/docker-compose.yml not fully functional
2 participants