gost
gost copied to clipboard
Prometheus exporter / Support metrics
Prometheus exporter will be great.
Example
Fails
Tag: [types=invalid auth/invalid protocol] Fields=Fails/Seconds
Usage
Tags: [username, ip, port, protocol] Fields: send, recive bytes
# fails
gost_fails_count{type=invalid_auth} 7
gost_fails_count{type=invalid_proto} 3
# usage
gost_usage_bytes{proto=http ip=192.168.1.2 user=usr1 port=8080} 1024
gost_usage_bytes{proto=socks5 ip=192.168.1.3 user=usr2 port=8080} 2048
More info : https://github.com/prometheus/client_golang
https://gost.run/en/tutorials/metrics/