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

[receiver/sqlserver] Do not pass metrics details to pkg/winperfcounters #9787

Merged

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented May 7, 2022

This is refactoring of the sqlserver receiver to make it use pkg/winperfcounters just as a source of perf counter values and do not pass metric details back and forth.

pkg/winperfcounters uses user configuration structures from windowsperfcounters receiver as its API interface which seems unnecessary. This is one of the steps in bigger refactoring to make the pkg/winperfcounters interface concise and not dependent on user setting structures from windowsperfcounters receiver.

@dmitryax dmitryax requested a review from a team May 7, 2022 06:37
@dmitryax dmitryax requested a review from djaglowski as a code owner May 7, 2022 06:37
@dmitryax dmitryax added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 7, 2022
@dmitryax dmitryax force-pushed the refactor-sql-server-receiver branch 10 times, most recently from e7191b5 to 92799a9 Compare May 9, 2022 16:15
This is refactoring of the sqlserver receiver to make it use pkg/winperfcounters just to retrieve required pert counter values and do not pass metrics details back and forth. They are not needed there. This is one of the steps in bigger refactoring of the interface provided by pkg/winperfcounters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants