Imports github.com/pkg/errors github.com/elastic/beats/libbeat/outputs/transport github.com/prometheus/client_model/go github.com/elastic/beats/metricbeat/mb github.com/elastic/beats/libbeat/outputs github.com/prometheus/common/expfmt Standard library imports bufio bytes encoding/json fmt io io/ioutil net/http time