1
0
mirror of https://github.com/ribbybibby/ssl_exporter.git synced 2025-02-19 19:59:47 +02:00

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

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(