Comments (10)
@alexbers it will show both connections from clients to proxy and from proxy to telegram servers. Also, it will show other connections on the system. So, it might be bit better to use ss -nt state established '( sport = 443 )' | wc -l
(here 443 is proxy port; if proxy uses different port, replace 443 with yours
from mtprotoproxy.
yes, you can use netstat -tn
command, like netstat -tn | wc -l
from mtprotoproxy.
The proxy prints those stats every 10 minutes. They look like this
Stats for 05.06.2018 22:06:11
tg: 29 connects (0 current), 0.04 MB
tg2: 1268 connects (0 current), 0.02 MB
If you're using docker, the docker-compose logs
command can be used to see the number of active connections
from mtprotoproxy.
@alexbers, how about more "parseable" statistics format?
For example, JSON or CSV or key=value via http(s) request or CLI command or rewriteable file like openvpn-status.log?
users=tg,tg2
tg.connects=29
tg.curr_connects=0
tg.octets=0.04
tg.msgs=111
tg2.connects=1268
tg2.curr_connects=0
tg2.octets=0.02
tg2.msgs=222
tg;29;0;0.04;111
tg2:1268;0;0.02;222
Thanks!
from mtprotoproxy.
@Allineer you can have statistics in Prometheus format if you check prometheus branch
from mtprotoproxy.
@seriyps Спасибо!
from mtprotoproxy.
docker-compose logs doesn't echo the same output as before! it doesn't show the connection stats and numbers!
from mtprotoproxy.
do you use prometheus branch? could you send the output of docker-compose logs command (please, replace your server ip with 0.0.0.0)?
from mtprotoproxy.
@alexbers @seriyps Is there a way to see the number of connections when I'm running the proxy with Python command? I ran 6 instances with tmux
on a 6cpu server
from mtprotoproxy.
The Prometheus support have been merged to master
from mtprotoproxy.
Related Issues (20)
- Ydh
- proxy
- unknown rpc ans type: b'\xdf\xa20W' HOT 1
- MTProxy Admin Bot dont accept my secret cause python script make it more than 32 hex. Please, help!
- . HOT 2
- .
- . HOT 1
- When open telegam app , it takes too long time wait for connecting to the proxy HOT 2
- Proxy works on Telegram Desktop (Windows) but not on Android Telegram
- Error in source code
- Does MTProto allow to route all a device internet traffic to the proxy? Like a VPN? HOT 1
- .
- IPV6 dont work when i add users
- IP white list method - amazon changer & checker - local server tunnel
- Installing Python MTProxy on CentOS 8 with Python update HOT 5
- port change doesnt work in config.py HOT 1
- Dokerfile for debian 12 HOT 1
- ERROR: Service 'mtprotoproxy' failed to build: The command '/bin/sh -c apt-get update && apt-get install --no-install-recommends -y python3 python3-uvloop python3-cryptography python3-socks libcap2-bin ca-certificates && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100 HOT 3
- It only works for a few minutes HOT 2
- python3.12 run Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtprotoproxy.