code: func (p *Plugin) AfterInit() error {
  	if p.StatusCheck != nil && p.session != nil {
  		p.StatusCheck.Register(p.PluginName, func() (statuscheck.PluginState, error) {
  			broker := p.NewBroker()
  			err := broker.Exec(`select keyspace_name from system_schema.keyspaces`)
  			if err == nil {
  				return statuscheck.OK, nil
  			}
  			return statuscheck.Error, err
  		})
  		p.Log.Warnf("Status check for %s was started", p.PluginName)
  	}
  
  	return nil
  }
docs: // AfterInit registers Cassandra to status check.