use the parsed target when connecting with the http client

This commit is contained in:
Rob Best
2019-12-18 19:26:31 +00:00
parent 874f02f403
commit 0983ffdba6
+1 -1
View File
@@ -127,7 +127,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
}
// Issue a GET request to the target
resp, err := client.Get(e.target)
resp, err := client.Get(target)
if err != nil {
log.Errorln(err)
ch <- prometheus.MustNewConstMetric(