-
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
support defining metrics_filters for prometheus module in annotations #24264
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
Pinging @elastic/integrations (Team:Integrations) |
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 great, thanks for working on this! I left two minor comments.
Also could you please add the respective part in the docs (https://github.com/elastic/beats/blob/95a88a6ed7f0c175175a1d3772a63c6e8d313437/metricbeat/docs/autodiscover-hints.asciidoc an example too would be nice)?
/test |
@ChrsMark thanks for reviewing this PR! PTAL |
/test |
@ChrsMark there was an error in unit tests. I don't have much insight of that. could you pls help? |
@newly12 no worries, it should be an issue with windows node that made the CI failing (it is fixed internally). I'm restarting the job to see if it was fixed. I also manually tested this one and works perfectly. I put my steps in the PR's description for reference. Thanks again for working on this! |
…elastic#24264) (cherry picked from commit 9dd84a9)
…#24264) (#24348) (cherry picked from commit 9dd84a9) Co-authored-by: Peter Deng <[email protected]>
Please label this PR with one of the following labels, depending on the scope of your change:
What does this PR do?
support defining metrics_filters for prometheus module in annotations
Why is it important?
support metrics_filters in annotations
Checklist
I have commented my code, particularly in hard-to-understand areasI have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
run test case
Or:
prometheus_http_*
metrics are collected whileprometheus_http_response_size_bytes
are excluded .Related issues
Use cases
annotate pod to add metrics filters without defining all of them in
/raw
Screenshots
Logs