-
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/elasticsearch] Add additional metrics #12176
[receiver/elasticsearch] Add additional metrics #12176
Conversation
90d8e65
to
831c951
Compare
@jkowall Any particular reason for thumbs downing this draft PR? |
Nope, meant to thumbs up! Good contribution. |
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.
Thanks for the contribution @davidji99.
Typically, please open an issue proposing the changes you'd like to see.
Overall this looks good to me, but there are quite a few minor details to work through.
I'd also like to see these metrics represented in the results of scraper_test.go
and integration_test.go
, or understand why not.
Thanks for the review! I will work through your proposed changes. Yes, I plan on adding these new metrics to the relevant |
bac4f06
to
28392e3
Compare
Hi @djaglowski, I've updated
Maybe I'm missing something here but I expected the metric count to be the same? |
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.
My suggestion for updating the expected metric json files is to temporarily insert a golden.WriteMetrics(expectedFile, actualMetrics)
call in the test code. This will overwrite the expected file with the metrics you actually get from the scraper. Then, take a close look at the diff and see if it makes sense at that point.
f30e658
to
b78fdda
Compare
Thank you for the tip @djaglowski. I've updated this PR with passing tests. Could you take another look? |
- OS stats - filesystem - shard - etc
- combine CPU memory metric into one metric
1a84875
to
5e49460
Compare
5e49460
to
a6e09ba
Compare
@djaglowski Updated the PR. Can you re-run tests? |
Thanks for the contribution @davidji99! |
Thank you for your help and patience @djaglowski ! |
Description:
Adding a few more metrics to the elasticsearch receiver.
Please let me know what I missed. This is my first contribution. Thank you.
Documentation:
The documentation was auto-added when running
go generate ./...
TODO: