Skip to content

Metrics and stats in logs differ

Hi,

i built the snowflake proxy from commit 5b9f7fc7.

In the logs i can see something like this:

2025-08-27_06:29:46.69516 2025/08/27 06:29:46 In the last 1h0m0s, there were 8 completed successful connections. Traffic Relayed ↓ 594305 KB (165.08 KB/s), ↑ 37276 KB (10.35 KB/s).

So there is about 600MB traffic relayed.

Prometheus on the other hand just reports:

( increase(tor_snowflake_proxy_traffic_inbound_bytes_total[24h]) + increase(tor_snowflake_proxy_traffic_outbound_bytes_total[24h]) ) / 2^20

2.4MB for the whole day. So either these metrics measure something else as the logs or one of them is wrong.