15 Commits

Author SHA1 Message Date
Michael Dekker
e1a2425ced Add PROXY protocol support 2025-09-12 00:00:26 +02:00
Shizun Ge
0cc52eee46 Prometheus roundup the trapped time to the interval.
In the old way, if the connection is broken less than an interval, the trapped time won't be reported.
With this fix, the prometheus should report the same value as the log.
2024-01-27 23:26:39 -08:00
Shizun Ge
e395971cfd clean metrics, remove series if the ip is not seen for a while. 2024-01-18 22:58:35 -08:00
Shizun Ge
7da8e5e9ab update documents about multiple ports 2024-01-18 22:58:35 -08:00
Shizun Ge
fee1f1a67d re-org files into packages. update copyright. accept multiple ports. 2024-01-18 22:58:35 -08:00
Shizun Ge
df4cd39c57 refactor: move prometheus outside client class 2024-01-18 22:58:35 -08:00
Shizun Ge
d471db7f6c enable open matrics.
Let Prometheus decide which to keep.
2024-01-14 14:22:24 -08:00
Shizun Ge
f6d3341085 stop sending open metrics 2024-01-05 19:27:25 -08:00
Shizun Ge
c50302622e hard coded country to coordinates. update copyright date. 2023-02-11 00:53:31 -08:00
Shizun Ge
d9202cfca6 remove freegeoip.live as a provider 2023-02-10 22:22:32 -08:00
Shizun Ge
fad9a4cded allow bind prometheus to a different interface than the ssh one. 2022-07-11 18:41:57 -07:00
Shizun Ge
0f9201e8c2 add support to read max mind db 2022-07-09 12:20:55 -07:00
Shizun Ge
31cf50b63f fix crash when prometheus is disable 2021-10-27 00:37:49 -07:00
Shizun Ge
49707775bc initial push to github 2021-10-26 21:56:39 -07:00
Shizun Ge
fb42a7f5de Create endlessh in golang 2021-10-12 01:03:44 -07:00