Best way to measure number of concurrent users for a single key?

Hi. I use Outline VPN to provide a free access to banned social networks and media for people in Russia. The same access key is being used for multiple clients, essentially one single key for everyone.

What will be the best way to measure number of concurrently connected users at the moment, so that I could have a better understanding of service growth? I do monitor network traffic with New Relic, so I have an understanding of load in terms of Mbits/s and processor load. But I need a more deep understanding in terms of “number of connected clients”. Is there a way to calculate only incoming connections to an Outline server?

Outline collects some metrics from the Shadowsocks server and you can explore them with Prometheus locally. I think Prometheus is exposed on localhost:9090 on your host by default.

Maybe you can use netstat command. It can show how many different IPs are connected to a specific port. The problem is that if several people connect from the same WiFi you may not get correct results.

people in Russia

let me guess, hi-l dev?

Sorry for my English

I do not understand what the key is, it will be an access code, but github, I copy.
But I must have done something wrong because it doesn’t work. Give me a hand at least to understand better I’m learning English. Thank you

I posted on how to access the Outline server metrics on Stack Overflow: https://stackoverflow.com/a/76870052

I hope that helps!

Several people margin of error is fine. But how do I differentiate incoming Outline connections from outgoing with netstat?

My understanding is that for every user to VPN connection there will be a number of connections from VPN server to the internet services which represent user requests and application activity. So in order to measure with netstat I need to somehow filter incoming connections only. This may be a trivial task, I am just not an expert on this.

Nope, but I know the guys from Highload VPN. We are kind of doing the same thing, diversifying our efforts. Mine is on the lower scale though.

AFAIK, with netstat you see only outgoing connections.