-
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
[Metricbeat] Add Airflow module in xpack #26220
Conversation
Pinging @elastic/integrations (Team:Integrations) |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
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.
Great first PR @aspacca! I think the new mapping support in the statsd module offers many possibilities. I have added some comments, but mostly about Metricbeat specifics.
This change will need two changelog entries, one for the new mapping in the statsd module and another one for the new airflow module. And this makes me think that this PR might be splitted into two, this will make it easier to separate the specific discussions for each feature, and we can focus first in merging the new mapping for the statsd module. What do you think?
just adding the entries under
I'm fine having both discussions in this PR, but I understand your "concern", it's up about what is the standard for such cases in the team. |
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 addressing most of the comments! Adding some extra suggestions.
This pull request is now in conflicts. Could you fix it? 🙏
|
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.
Added some minor comments, nothing serious. Good job!
/test |
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 addressing all the comments! I have added some extra nitpicking, but I'd say this is ready to merge.
One failing test seems related, the other one is unrelated (#26537). |
on win images windows firewall seems to block the udp statsd server created by the module. that's the reason why the |
Ok, then skip these tests in windows by now, and maybe in the future we can configure the firewall in these images to allow local UDP connections. |
This pull request is now in conflicts. Could you fix it? 🙏
|
Airflow module is a lightweight module based on Statsd module. It filters, renames and adds metrics according to mappings defined in the manifest.yml
This pull request is now in conflicts. Could you fix it? 🙏
|
* [Metricbeat] Add Airflow module Airflow module is a lightweight module based on Statsd module. It filters, renames and adds metrics according to mappings defined in the manifest.yml (cherry picked from commit 3d01b5b)
* [Metricbeat] Add Airflow module Airflow module is a lightweight module based on Statsd module. It filters, renames and adds metrics according to mappings defined in the manifest.yml (cherry picked from commit 3d01b5b)
…stage-failed-within-same-build * upstream/master: (36 commits) Revert "[CI] fight the flakiness with some retry option in the CI only for the Pull Requests (elastic#26617)" (elastic#26704) Packaging: linux/armv7 is not supported (elastic#26706) Cyberarkpas: Link to official docs on how to setup TLS (elastic#26614) Make network_direction, registered_domain and convert processors compatible with ES older than 7.13.0 (elastic#26676) Disable armv7 packaging (elastic#26679) [Heartbeat] use --params flag for synthetics (elastic#26674) Update dependent package to avoid downloading a suspicious file (elastic#26406) [mergify] set title and allow bp in any direction (elastic#26648) Fix memory leak in SQL helper when database is not available (elastic#26607) [CI] fight the flakiness with some retry option in the CI only for the Pull Requests (elastic#26617) [mergify] automate PRs that change the backport rules (elastic#26641) [Metricbeat] Add Airflow module in xpack (elastic#26220) chore: add-backport-next (elastic#26620) [metricbeat] Add state_job metricset (elastic#26479) CI: jenkins labels are less time consuming now (elastic#26613) [MetricBeat] [AWS] Fix aws metric tags with resourcegroupstaggingapi paginator (elastic#26385) (elastic#26443) Move openmetrics module to oss (elastic#26561) Skip flaky test TestFilestreamMetadataUpdatedOnRename (elastic#26609) [filebeat][fortinet] Use default add_locale for fortinet.firewall (elastic#26524) Enroll proxy settings (elastic#26514) ...
* [Metricbeat] Add Airflow module Airflow module is a lightweight module based on Statsd module. It filters, renames and adds metrics according to mappings defined in the manifest.yml
What does this PR do?
Adding Airflow monitoring as lightweight module based on Statsd (https://airflow.apache.org/docs/apache-airflow/1.10.15/metrics.html)
Introduced
statsd.mapping
to filter and transform Airflow mapping (it's anyway generic and could be applied to any other Statsd lightweigth module in the future).It uses
eventMapping(...)
function according to https://github.com/elastic/beats/blob/23e4403ae093fcc8f7905345cad2c7ad256976d8/docs/devguide/metricset-details.asciidoc#data-transformation. It is anyway in theRun()
method and not in theFetch()
one, but there is where we callreporter.Event(*e)
for the module. It has to be clarified if it's correct.Why is it important?
Because it is my first PR :)
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Closes #26197
Use cases
Screenshots
Logs