Skip to content

Commit afa435b

Browse files
committed
update README.md, go fmt.
1 parent a9c53cc commit afa435b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Usage of /selenium_grid_exporter:
1818
## Metrics
1919

2020
```
21+
# HELP selenium_grid_hub_sessions_backlog number of sessions waiting for a slot
22+
# TYPE selenium_grid_hub_sessions_backlog gauge
23+
selenium_grid_hub_sessions_backlog 0
2124
# HELP selenium_grid_hub_slotsFree number of free slots
2225
# TYPE selenium_grid_hub_slotsFree gauge
2326
selenium_grid_hub_slotsFree 4

selenium_grid_exporter.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ var (
2626
)
2727

2828
type Exporter struct {
29-
URI string
30-
mutex sync.RWMutex
29+
URI string
30+
mutex sync.RWMutex
3131
up, slotsTotal, slotsFree, newSessionRequestCount prometheus.Gauge
3232
}
3333

@@ -118,7 +118,7 @@ func (e *Exporter) scrape() {
118118
log.Errorf("Can't decode Selenium Grid response: %v", err)
119119
return
120120
}
121-
121+
122122
e.slotsTotal.Set(hResponse.Slots.Total)
123123
e.slotsFree.Set(hResponse.Slots.Free)
124124
e.newSessionRequestCount.Set(hResponse.NewSession)

0 commit comments

Comments
 (0)