code: func (c *RemoteReadConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
  	*c = DefaultRemoteReadConfig
  	type plain RemoteReadConfig
  	if err := unmarshal((*plain)(c)); err != nil {
  		return err
  	}
  	if c.URL == nil {
  		return errors.New("url for remote_read is empty")
  	}
  	// The UnmarshalYAML method of HTTPClientConfig is not being called because it's not a pointer.
  	// We cannot make it a pointer as the parser panics for inlined pointer structs.
  	// Thus we just do its validation here.
  	return c.HTTPClientConfig.Validate()
  }
docs: // UnmarshalYAML implements the yaml.Unmarshaler interface.