Updated Setting up a Hub (markdown)
parent
a1bf792bf5
commit
cc27dbebe8
1 changed files with 8 additions and 1 deletions
|
@ -153,7 +153,14 @@ open the following ports in your firewall
|
|||
|
||||
Congratulations! You have a full hub up and running. Now you can add your hub's IP or hostname to the `lbryum_servers` config in the LBRY Desktop app, and connect to it.
|
||||
|
||||
To check how many connections you have of each version, run `curl -s localhost:2112/metrics | grep session_count`. To get a total across all the versions, use `curl -s localhost:2112/metrics | grep session_count | grep -v '#' | cut -d' ' -f2- | paste -sd+ | bc -l`
|
||||
To check how many clients are connected to your hub, use:
|
||||
|
||||
```bash
|
||||
# number of connected clients, grouped by client version
|
||||
curl -s localhost:2112/metrics | grep session_count
|
||||
# total number of clients across all versions
|
||||
curl -s localhost:2112/metrics | grep session_count | grep -v '#' | cut -d' ' -f2- | paste -sd+ | bc -l`
|
||||
```
|
||||
|
||||
## Monitoring
|
||||
|
||||
|
|
Loading…
Reference in a new issue