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

Versions in queries.yaml #543

Conversation

vl4deee11
Copy link

@vl4deee11 vl4deee11 commented Jun 10, 2021

Fix issue #502

Added template for breaking changes

This will help users redefine the fields for their specific version without editing the project code.

@vl4deee11 vl4deee11 force-pushed the feature/breaking-changes branch from 2ee84d9 to 43c7666 Compare June 10, 2021 06:47
@vl4deee11 vl4deee11 changed the title Breaking changes feature Fix pg13 Jun 10, 2021
@vl4deee11 vl4deee11 closed this Jun 10, 2021
@vl4deee11 vl4deee11 reopened this Jun 10, 2021
@vl4deee11 vl4deee11 changed the title Fix pg13 Breaking changes in queries.yaml Jun 10, 2021
Signed-off-by: vl4deee11 <vl4deee11@gmail.com>
Signed-off-by: vl4deee11 <vl4deee11@gmail.com>
Signed-off-by: vl4deee11 <vl4deee11@gmail.com>
@vl4deee11 vl4deee11 force-pushed the feature/breaking-changes branch from 3c288c4 to 8bf43dc Compare June 10, 2021 09:12
Signed-off-by: vl4deee11 <vl4deee11@gmail.com>
@vl4deee11 vl4deee11 force-pushed the feature/breaking-changes branch from defd1e8 to 2c14a46 Compare June 10, 2021 09:19
Signed-off-by: vl4deee11 <vl4deee11@gmail.com>
@vl4deee11 vl4deee11 force-pushed the feature/breaking-changes branch from f339e65 to 3dafce0 Compare June 10, 2021 09:25
@vl4deee11 vl4deee11 changed the title Breaking changes in queries.yaml Versions in queries.yaml Jun 10, 2021
@vl4deee11
Copy link
Author

@SuperQ please check this PR =^)

@vl4deee11
Copy link
Author

@SuperQ can you react in any way

@SuperQ
Copy link
Contributor

SuperQ commented Jun 27, 2021

It's an interesting idea. I'm not sure I like how it works.

@vl4deee11
Copy link
Author

@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

@SuperQ
Copy link
Contributor

SuperQ commented Jun 28, 2021

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.

@vl4deee11
Copy link
Author

@SuperQ okay, I'll try to do it

@SuperQ
Copy link
Contributor

SuperQ commented Jun 29, 2021

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)

@vl4deee11
Copy link
Author

vl4deee11 commented Jul 4, 2021

@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?

@SuperQ
Copy link
Contributor

SuperQ commented Jul 4, 2021

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.

@vl4deee11
Copy link
Author

vl4deee11 commented Jul 4, 2021

@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

@sysadmind
Copy link
Contributor

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.

@vl4deee11
Copy link
Author

@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)!

@vl4deee11
Copy link
Author

New #553

@vl4deee11 vl4deee11 closed this Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants