-
Notifications
You must be signed in to change notification settings - Fork 88
Support extra flags for mysqld_exporter #629
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
Support extra flags for mysqld_exporter #629
Conversation
bc29ff4 to
eac877c
Compare
3f26d14 to
4f78932
Compare
|
Thanks for the helpful pointers, @frouioui! I regenerated the The upgrade test is passing locally, but is failing in CI. Unfortunately, I'm not able to see the reason. I noticed that the post-upgrade |
| verifyDurabilityPolicy "commerce" "semi_sync" | ||
| upgradeToLatest | ||
| verifyVtGateVersion "22.0.0" | ||
| verifyResourceSpec |
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.
Note to myself: once the next release (v2.15.0) is out, we should do that check before and after we upgrade.
frouioui
left a comment
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.
This looks good to me! Thanks for working on that ❤️
These tests are unfortunately pretty flaky indeed 😢 Hopefully we get some time to work on this. |
fdc713e to
4f78932
Compare
|
Merged |
|
Still flaky/failing. I added a retry mechanism to the verify vtgate version function. Hopefully that should help. |
Signed-off-by: Sergey Stankevich <[email protected]>
Signed-off-by: Sergey Stankevich <[email protected]>
Signed-off-by: Sergey Stankevich <[email protected]>
It's possible that mysqldExporter.extraFlags are provided while mysqldExporter.resources are not. Signed-off-by: Sergey Stankevich <[email protected]>
d56e0ac to
30fd381
Compare
Signed-off-by: Sergey Stankevich <[email protected]>
30fd381 to
9b78217
Compare
|
@frouioui: I rebased this PR and opened a new one in the Vitess repository since the previous one got closed: vitessio/vitess#18364. Thanks! |
|
@frouioui: Can this + vitessio/vitess#18364 be merged, or is there anything else that needs to be done? |
Adds a new
mysqldExporter.extraFlagsproperty that can be used to pass custom flags to mysqld_exporter to enable/configure additional collectors. Also, makes it possible to override thecollect.info_schema.tables.databasesvalue if needed. The default behaviour and collector flags remain unchanged.This PR largely follows existing code conventions in the operator. I added a new
FormatArgsConvertBoolean()method to Flags to support mysqld_exporter's flag format. Added the tests for it and for the existingFormatArgs()andMerge()methods.Closes #470.