Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement of stats #41

Open
x70b1 opened this issue Feb 3, 2020 · 2 comments
Open

improvement of stats #41

x70b1 opened this issue Feb 3, 2020 · 2 comments

Comments

@x70b1
Copy link

x70b1 commented Feb 3, 2020

endlessh is a wonderful tool.

At the moment there are loglines like:
2020-02-03T13:30:38.268Z TOTALS connects=359 seconds=10691.941 bytes=12632

A clean stats interface would be better. Cutting the data out of the logs is not very smooth. Especially in a docker environment.

Additionally stats about a "CURRENT" state would be helpful too, like current connected clients.

@FoxxMD
Copy link

FoxxMD commented Apr 23, 2021

A more ingest-friendly stat format or interface would definitely be helpful! Maybe output to json for events and more comprehensive statistics. Or interacting with a socket.

"CURRENT" state

This is in each ACCEPT log line as n=[# of current connections]/[max # of connections]

Also it is still possible to extract some good info from the log! Without using the stat signal this is what I came up with using loki + docker driver + grafana:
image

@shizunge
Copy link

shizunge commented Oct 27, 2021

Read the source code. If you send a SIGUSR1 to the application, it dumps the statistics to log.

You are also welcome to try my Grafana dashboard (simpler with my go implementation):
https://github.com/shizunge/endlessh-go

screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants