1h active keys by location:
sum(max(increase(shadowsocks_data_bytes{access_key!=""} [1h])) by (access_key, location) > bool 0) by (location)
1h usage by location:
sum(increase(shadowsocks_data_bytes{dir=~"c<p|p>t"} [1h])) by (location)
Open TCP connections:
sum(shadowsocks_tcp_connections_opened) - sum(shadowsocks_tcp_connections_closed)
Live UDP associations:
shadowsocks_udp_nat_entries_added - shadowsocks_udp_nat_entries_removed
Time to find cipher:
shadowsocks_time_to_cipher_ms{access_key!=""}
CPU seconds per second (averaged over 10m):
rate(process_cpu_seconds_total[10m])
Uptime:
time() - process_start_time_seconds{job="outline-server-main"}