Changeset 710 in code for trunk/server.go
- Timestamp:
- Nov 17, 2021, 2:58:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server.go
r709 r710 101 101 metrics struct { 102 102 downstreams int64Gauge 103 upstreams int64Gauge 103 104 } 104 105 } … … 165 166 Help: "Current number of downstream connections", 166 167 }, s.metrics.downstreams.Float64) 168 169 factory.NewGaugeFunc(prometheus.GaugeOpts{ 170 Name: "soju_upstreams_active", 171 Help: "Current number of upstream connections", 172 }, s.metrics.upstreams.Float64) 167 173 } 168 174 … … 344 350 Users int 345 351 Downstreams int64 352 Upstreams int64 346 353 } 347 354 … … 352 359 s.lock.Unlock() 353 360 stats.Downstreams = s.metrics.downstreams.Value() 361 stats.Upstreams = s.metrics.upstreams.Value() 354 362 return &stats 355 363 }
Note:
See TracChangeset
for help on using the changeset viewer.