code: func (p *Plugin) NewRegistry(path string, opts promhttp.HandlerOpts) error {
  	p.Lock()
  	defer p.Unlock()
  
  	if !strings.HasPrefix(path, "/") {
  		p.Log.WithField("path", path).Error(ErrPathInvalidFormat)
  		return ErrPathInvalidFormat
  	}
  	if _, found := p.regs[path]; found {
  		p.Log.WithField("path", path).Error(ErrPathAlreadyRegistry)
  		return ErrPathAlreadyRegistry
  	}
  	newReg := prometheus.NewRegistry()
  	p.regs[path] = &registry{
  		Registerer: newReg,
  		Gatherer:   newReg,
  		httpOpts:   opts,
  	}
  	return nil
  }
docs: // NewRegistry creates new registry exposed at defined URL path (must begin with '/' character), path is used to reference
  // registry while adding new metrics into registry, opts adjust the behavior of exposed registry. Must be called before
  // AfterInit phase of the Prometheus plugin. An attempt to create  a registry with path that is already used
  // by different registry returns an error.