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:
parent
874f02f403
commit
0983ffdba6
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user