Skip to content

Commit

Permalink
do not filter thread pool by port (apache#3919)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzomkxia authored and chickenlj committed Apr 24, 2019
1 parent 875a665 commit ddcdb29
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ private List<MetricObject> getThreadPoolMessage() {
ExecutorService executor = (ExecutorService) entry.getValue();
if (executor instanceof ThreadPoolExecutor) {
ThreadPoolExecutor tp = (ThreadPoolExecutor) executor;
// ignore metrcis service
if (port.equals(this.port + "")) {
continue;
}

threadPoolMtricList.add(value2MetricObject("threadPool.active", tp.getActiveCount(), MetricLevel.MAJOR));
threadPoolMtricList.add(value2MetricObject("threadPool.core", tp.getCorePoolSize(), MetricLevel.MAJOR));
Expand Down

0 comments on commit ddcdb29

Please sign in to comment.