Hi HertzBeat Community, When I was writing unit tests, I noticed that there was a preCheck validation logic in each collector. Therefore, I suggest implementing this method separately to make the code structure clearer and more conducive to unit testing.
Please see the HIP: https://github.com/apache/hertzbeat/pull/1930 -- Best Regards! crossoverJie