-
Notifications
You must be signed in to change notification settings - Fork 754
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
Versions in queries.yaml #543
Versions in queries.yaml #543
Conversation
2ee84d9
to
43c7666
Compare
3c288c4
to
8bf43dc
Compare
defd1e8
to
2c14a46
Compare
f339e65
to
3dafce0
Compare
@SuperQ please check this PR =^) |
@SuperQ can you react in any way |
It's an interesting idea. I'm not sure I like how it works. |
@SuperQ Okay, don't you like it in terms of code design or in terms of performance ? In fact, it will help people to keep in the same values.yaml settings for databases of different versions |
I think if we need to get more complicated than what can be done with queries.yaml, we should move the query into a dedicated collector. |
@SuperQ okay, I'll try to do it |
Thanks! I would love to see more of the queries.yaml functionality moved into code. This makes it easier for users. (This is how the MySQL exporter works) |
@SuperQ I looked at all the code as much as I could during my work time and also looked at mysql_exporter a little, and I did not understand a bit what you want to see with the versions, could you help a little with this? |
The whole exporter needs a bit of a refactor to make it easier to add features. I know @sysadmind was interested in doing some work on this. |
@SuperQ @sysadmind Yes, I agree that this requires refactoring, but unfortunately, I cannot take responsibility for refactoring, as I am afraid that I will not have enough time (now loaded with university studies and work), but at the same time I could help with this |
I did start trying to clean up the code to make a refactor easier. I opened #552 as a start. I think making sure that we have the appropriate test coverage will make sure we don't lose behavior unintentionally. I'll take a look at this pr when I get some time. |
@sysadmind Ok, thanks. I'll be happy to inject queries with versions into the new code (which I wanted to do in this PR), if you need help with refactoring, I could help (write to vl4deee11@gmail.com)! |
New #553 |
Fix issue #502
Added template for breaking changes
This will help users redefine the fields for their specific version without editing the project code.