Calvin979 opened a new pull request, #3748: URL: https://github.com/apache/hertzbeat/pull/3748
## What's changed? <!-- Describe Your PR Here --> **Overview** <img width="1369" height="815" alt="image" src="https://github.com/user-attachments/assets/92abc41e-978f-4ec8-a6ea-17dd681d04fd" /> <img width="706" height="488" alt="image" src="https://github.com/user-attachments/assets/1f4bde37-4b90-478f-aaaf-b8061c604253" /> There are two purposes on refactoring Collector module: 1. Create a context to maintain reusable resources and pass data between different scopes (even can pass data between collectors / jobs [_to be completed_]) <img width="394" height="256" alt="image" src="https://github.com/user-attachments/assets/5bf85cd3-221a-408b-887e-5259ed437f7a" /> <img width="721" height="562" alt="image" src="https://github.com/user-attachments/assets/c41cbb38-b9cf-4a0a-9c3b-b5a15a41fb26" /> 2. Optimize code structure It is easy to understand and expand functionalities now by adding `Data Stream` or `Listener` <img width="1399" height="861" alt="image" src="https://github.com/user-attachments/assets/4fa7ccfe-5e74-4bbb-ae3e-8847b01df41d" /> ## Todo - [ ] Rewrite Prometheus related code - [ ] Complete Hierarchic Context - [ ] Fast Faild function - [ ] Timeout listener - [ ] Dynamic data stream (Sub task) ## Checklist - [ ] I have read the [Contributing Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide) - [ ] I have written the necessary doc or comment. - [ ] I have added the necessary unit tests and all cases have passed. ## Add or update API - [ ] I have added the necessary [e2e tests](https://github.com/apache/hertzbeat/tree/master/e2e) and all cases have passed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
