Updated Setting up a Hub (markdown)
parent
cc27dbebe8
commit
f5b36ec51b
1 changed files with 3 additions and 3 deletions
|
@ -156,10 +156,10 @@ Congratulations! You have a full hub up and running. Now you can add your hub's
|
||||||
To check how many clients are connected to your hub, use:
|
To check how many clients are connected to your hub, use:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# number of connected clients, grouped by client version
|
# count the number of connected clients, grouped by client version
|
||||||
curl -s localhost:2112/metrics | grep session_count
|
curl -s localhost:2112/metrics | grep session_count
|
||||||
# total number of clients across all versions
|
# count the total number of clients across all versions
|
||||||
curl -s localhost:2112/metrics | grep session_count | grep -v '#' | cut -d' ' -f2- | paste -sd+ | bc -l`
|
curl -s localhost:2112/metrics | grep session_count | grep -v '#' | cut -d' ' -f2- | paste -sd+ | bc -l
|
||||||
```
|
```
|
||||||
|
|
||||||
## Monitoring
|
## Monitoring
|
||||||
|
|
Loading…
Reference in a new issue