Skip to content

Commit

Permalink
fix typo and pointless binding
Browse files Browse the repository at this point in the history
  • Loading branch information
wakeful committed Oct 29, 2017
1 parent 7d3e712 commit a0001ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions selenium_grid_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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(), ""))

Expand Down

0 comments on commit a0001ca

Please sign in to comment.