code: func NewMonitor(cfg MonitorConfig) (*Monitor, error) {
  	if err := cfg.CheckAndSetDefaults(); err != nil {
  		return nil, trace.Wrap(err)
  	}
  	return &Monitor{
  		MonitorConfig: cfg,
  	}, nil
  }
docs: // NewMonitor returns a new monitor