hertzbeat
hertzbeat copied to clipboard
[refactor] optimize collector module
What's changed?
Overview
There are two purposes on refactoring Collector module:
-
Create a context to maintain reusable resources and pass data between different scopes (even can pass data between collectors / jobs [to be completed])
-
Optimize code structure It is easy to understand and expand functionalities now by adding
Data StreamorListener
Todo
- [ ] Rewrite Prometheus related code
- [ ] Complete Hierarchic Context
- [ ] Fast Faild function
- [ ] Timeout listener
- [ ] Dynamic data stream (Sub task)
- [ ] Update unit tests
- [ ] Self monitor
Checklist
- [x] I have read the Contributing Guide
- [x] 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 and all cases have passed.