Imports github.com/elastic/beats/libbeat/common github.com/elastic/beats/libbeat/beat github.com/elastic/beats/metricbeat/mb Standard library imports encoding/json flag fmt io/ioutil os sync testing time