19 Commits

Author SHA1 Message Date
Ben G 4344bfbde4 test: add prometheus metrics integration test 2026-03-20 20:42:59 +01:00
Ben G df8978a8f1 review 2026-02-24 00:03:26 +01:00
Ben G eea67a33b1 fix server for random port and review 2026-02-09 23:38:27 +01:00
Shizun Ge 0d5395b4ee Update copyright to 2026. 2026-01-05 20:07:30 -08:00
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