code: @Override
    public void register(Monitor<?> monitor) {
      try {
        List<MonitorMBean> beans = MonitorMBean.createMBeans(name, monitor, mapper);
        for (MonitorMBean bean : beans) {
          register(bean.getObjectName(), bean);
        }
        monitors.put(monitor.getConfig(), monitor);
        updatePending.set(true);
      } catch (Exception e) {
        LOG.warn("Unable to register Monitor:" + monitor.getConfig(), e);
      }
    }
docs: Register a new monitor in the registry.