mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Updated broker specification and comments
This commit is contained in:
parent
97554e03e4
commit
94de69aa36
3 changed files with 22 additions and 59 deletions
|
@ -1,66 +1,11 @@
|
|||
/*
|
||||
We export metrics in the following format:
|
||||
|
||||
"snowflake-stats-end" YYYY-MM-DD HH:MM:SS (NSEC s) NL
|
||||
[At most once.]
|
||||
|
||||
YYYY-MM-DD HH:MM:SS defines the end of the included measurement
|
||||
interval of length NSEC seconds (86400 seconds by default).
|
||||
|
||||
"snowflake-ips" CC=NUM,CC=NUM,... NL
|
||||
[At most once.]
|
||||
|
||||
List of mappings from two-letter country codes to the number of
|
||||
unique IP addresses of snowflake proxies that have polled.
|
||||
|
||||
"snowflake-ips-total" NUM NL
|
||||
[At most once.]
|
||||
|
||||
A count of the total number of unique IP addresses of snowflake
|
||||
proxies that have polled.
|
||||
|
||||
"snowflake-ips-standalone" NUM NL
|
||||
[At most once.]
|
||||
|
||||
A count of the total number of unique IP addresses of snowflake
|
||||
proxies of type "standalone" that have polled.
|
||||
|
||||
"snowflake-ips-badge" NUM NL
|
||||
[At most once.]
|
||||
|
||||
A count of the total number of unique IP addresses of snowflake
|
||||
proxies of type "badge" that have polled.
|
||||
|
||||
"snowflake-ips-webext" NUM NL
|
||||
[At most once.]
|
||||
|
||||
A count of the total number of unique IP addresses of snowflake
|
||||
proxies of type "webext" that have polled.
|
||||
|
||||
"snowflake-idle-count" NUM NL
|
||||
[At most once.]
|
||||
|
||||
A count of the number of times a proxy has polled but received
|
||||
no client offer, rounded up to the nearest multiple of 8.
|
||||
|
||||
"client-denied-count" NUM NL
|
||||
[At most once.]
|
||||
|
||||
A count of the number of times a client has requested a proxy
|
||||
from the broker but no proxies were available, rounded up to
|
||||
the nearest multiple of 8.
|
||||
|
||||
"client-snowflake-match-count" NUM NL
|
||||
[At most once.]
|
||||
|
||||
A count of the number of times a client successfully received a
|
||||
proxy from the broker, rounded up to the nearest multiple of 8.
|
||||
We export metrics in the format specified in our broker spec:
|
||||
https://gitweb.torproject.org/pluggable-transports/snowflake.git/tree/doc/broker-spec.txt
|
||||
*/
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
// "golang.org/x/net/internal/timeseries"
|
||||
"fmt"
|
||||
"log"
|
||||
"math"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue