code: private void doCollectStats(final TSDB tsdb, final StatsCollector collector, 
        final boolean canonical) {
      collector.addHostTag(canonical);
      ConnectionManager.collectStats(collector);
      RpcHandler.collectStats(collector);
      RpcManager.collectStats(collector);
      collectThreadStats(collector);
      tsdb.collectStats(collector);
    }
docs: Helper to record the statistics for the current TSD
  @param tsdb The TSDB to use for fetching stats
  @param collector The collector class to call for emitting stats