code: public void monitor(Monitor target) {
          log.info("starting monitor: {}", target);
  
          try {
              target.getMonitorDriver(props, configService).run();
  
          } catch (Exception e) {
              ByteArrayOutputStream out = new ByteArrayOutputStream();
              PrintStream error = new PrintStream(out);
  
              error.println("Error in MonitorsDriver: " + e.getMessage());
              e.printStackTrace(error);
  
              error.flush();
              IOUtils.closeQuietly(out);
  
              String msg = new String(out.toByteArray());
              log.error(msg);
              sendEmail("Management Console Monitors Error", msg);
          }
      }
docs: This method invokes the .run() method on the provided arg target.
  
  @param target to monitor