hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[refactor] optimize collector module

Open Calvin979 opened this issue 4 months ago • 0 comments

What's changed?

Overview image image

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]) image image

  2. Optimize code structure It is easy to understand and expand functionalities now by adding Data Stream or Listener image

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.

Calvin979 avatar Sep 06 '25 08:09 Calvin979