code: public static CompositeMonitor<?> newThreadPoolMonitor(String id, ThreadPoolExecutor pool) {
      return newObjectMonitor(id, new MonitoredThreadPool(pool));
    }
docs: Creates a new monitor for a thread pool with standard metrics for the pool size, queue size,
  task counts, etc.
  
  @param id   id to differentiate metrics for this pool from others.
  @param pool thread pool instance to monitor.
  @return composite monitor based on stats provided for the pool