From a0001ca8c81dc896717dad92700a01feb64cf6ce Mon Sep 17 00:00:00 2001 From: AJ Date: Sun, 29 Oct 2017 20:49:13 +0000 Subject: [PATCH] fix typo and pointless binding --- selenium_grid_exporter.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/selenium_grid_exporter.go b/selenium_grid_exporter.go index 21403a8..e45b6a7 100644 --- a/selenium_grid_exporter.go +++ b/selenium_grid_exporter.go @@ -106,7 +106,7 @@ func (e *Exporter) scrape() { var hResponse hubResponse if err := json.Unmarshal(body, &hResponse); err != nil { - log.Errorf("Can't decode Selenium Grid response: $v", err) + log.Errorf("Can't decode Selenium Grid response: %v", err) return } @@ -140,9 +140,8 @@ func main() { flag.Parse() log.Infoln("Starting selenium_grid_exporter") - exporter := NewExporter(*scrapeURI) - prometheus.MustRegister(exporter) + prometheus.MustRegister(NewExporter(*scrapeURI)) prometheus.Unregister(prometheus.NewGoCollector()) prometheus.Unregister(prometheus.NewProcessCollector(os.Getegid(), ""))