-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Make use of prometheus filter settings on IBM-MQ Metricbeat module #16971
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
1 similar comment
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
jenkins, test this |
Pinging @elastic/integrations (Team:Integrations) |
Pinging @elastic/integrations-services (Team:Services) |
looking at test failures.. |
@ChrsMark The test build was previously failing because the test expects the "up" event in the returned metrics. The "up" event is now filtered out by the metrics_filter. Before this commit, this test was succeeding because the previously used javascript processor doesn't get applied in the test setting (correct me if I'm wrong). I removed the "up" event from the expected data file because I believe it's filtered out on purpose (judging from logic in "addUpEvent" in prometheus/collector/collector.go). The test should succeed now (and I now know how to run tests locally, before creating a PR :) ) The other option would be to add the "up" metric to the default metrics_filter. |
Hey @ma-hei, good job with this! I would see value in reporting |
@ChrsMark makes sense. I added "up" to the default metrics_filters and re-added the "up" event to the expected test metrics. |
jenkins, test this |
fdf447f
to
a582344
Compare
jenkins, test this please |
@ChrsMark could you run Jenkins on this once more? I'm fairly confident that the test will succeed now (I forgot to add "up" as an expected metric to another integration test that I wasn't aware of). I can't seem to get this test to run locally.. I'm running "mage update build integTest" from x-pack/metricbeat. It seems to stall at this point. |
jenkins, test this please |
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 @ma-hei! Thank you for working on this!
…lastic#16971) (cherry picked from commit 0208a25)
What does this PR do?
Refactoring the manifest file of the qmgr metricset. Previously a processor was used to filter out non ibmmq metrics. This commit replaces the processor with the more elegant metrics_filter that was introduced recently.
Why is it important?
Using the metrics_filter is cleaner and easier to read.
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have added tests that prove my fix is effective or that my feature worksHow to test this PR locally