clean metrics, remove series if the ip is not seen for a while.

This commit is contained in:
Shizun Ge
2024-01-18 22:13:20 -08:00
parent 37d428cdf5
commit e395971cfd
4 changed files with 132 additions and 7 deletions

View File

@@ -73,6 +73,8 @@ Usage of ./endlessh-go
Path to the MaxMind DB file.
-port value
SSH listening port. You may provide multiple -port flags to listen to multiple ports. (default "2222")
-prometheus_clean_unseen_seconds int
Remove series if the IP is not seen for the given time. Set to 0 to disable. (default 0)
-prometheus_entry string
Entry point for prometheus (default "metrics")
-prometheus_host string