code: func (plugin *ExamplePlugin) checkStatus(closeCh chan struct{}) {
  	for {
  		select {
  		case <-closeCh:
  			plugin.Log.Info("Closing")
  			return
  		case <-time.After(1 * time.Second):
  			status := plugin.StatusMonitor.GetAllPluginStatus()
  			for k, v := range status {
  				plugin.Log.Infof("Status[%v] = %v", k, v)
  			}
  		}
  	}
  }
docs: // checkStatus periodically prints status of plugins that publish their state
  // to status check plugin