-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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] Add SQL Server Metrics Receiver #9252
Conversation
8be9f85
to
ad57820
Compare
Some formatting checks are failing. These make targets should help debug locally. |
891c367
to
79c7082
Compare
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.
Looks quite good, just a few minor things to tidy up.
Noting that Installing SQL Server adds 6 minutes to the build-and-test-windows
workflow. I think this is a reasonable cost for the benefit of being able to run real tests for this receiver. It doesn't currently extend the total CI runtime at this point either, because parallel workflows such as build-and-test
are running multiple times longer. If this workflow becomes the critical path for CI, it can be split apart such that tests requiring installation steps run on a parallel job.
79c7082
to
848205c
Compare
848205c
to
a5a43de
Compare
This makes use of the windowsperfcounter watchers, using them to collect SQL Server metrics.
a5a43de
to
e29e231
Compare
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.
LGTM. Thanks @StefanKurek!
Description:
Add SQL Server Metrics receiver using windows performance counter as a base.
Link to tracking Issue:
#8398
Testing:
Added config testing, factory tests, and scraper unit tests to validate new code.
An integration test has been added (and was tested locally) to verify the receiver can collect metrics, but I am expecting it to not work in this pipeline off the bat as I don't think SQL Server is installed on the Windows machines provided by GitHub Actions. And I'm not sure if we want to change the behavior of the pipeline to install SQL Server every time.
Documentation:
Added doc explaining use of receiver.