From f5b36ec51b657eb9d7763915e6ca77bb795ea3d5 Mon Sep 17 00:00:00 2001 From: Alex Grin <362784+lyoshenka@users.noreply.github.com> Date: Thu, 12 Jan 2023 12:42:32 -0500 Subject: [PATCH] Updated Setting up a Hub (markdown) --- Setting-up-a-Hub.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Setting-up-a-Hub.md b/Setting-up-a-Hub.md index 7048bad..fc29c2a 100644 --- a/Setting-up-a-Hub.md +++ b/Setting-up-a-Hub.md @@ -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: ```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 -# total number of clients across all versions -curl -s localhost:2112/metrics | grep session_count | grep -v '#' | cut -d' ' -f2- | paste -sd+ | bc -l` +# 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 ``` ## Monitoring