...
I propose to add three gauge: DeadFetcherThreadCount
for the fetcher threads, dead- log-cleaner-dead-thread-count
for the log cleaner. All of these are broker level metrics.
DeadFetcherThreadCount: this basically exposes the count of non-alive threads in the internal thread map in AbstractFetcherManager.
dead-log-cleaner-dead-thread-count: this would expose the difference between the number of configured threads and size of the ArrayBuffer that maintains the CleanerThread instances in LogCleaner.
...