[tor-commits] [snowflake/master] Added a metric that sums available snowflakes
cohosh at torproject.org
cohosh at torproject.org
Fri Jun 28 21:32:20 UTC 2019
commit 8f2dc3563b1922b285f406a48da85a5a94ee86f9
Author: Cecylia Bocovich <cohosh at torproject.org>
Date: Tue Jun 25 09:33:45 2019 -0400
Added a metric that sums available snowflakes
Added another metrics item that counts the total availabel snowflakes
(unique by IP address)
---
broker/metrics.go | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/broker/metrics.go b/broker/metrics.go
index a45179f..ffa61e2 100644
--- a/broker/metrics.go
+++ b/broker/metrics.go
@@ -13,6 +13,12 @@ We export metrics in the following format:
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-idle-count" NUM NL
[At most once.]
@@ -171,6 +177,7 @@ func (m *Metrics) logMetrics() {
func (m *Metrics) printMetrics() {
m.logger.Println("snowflake-stats-end", time.Now().UTC().Format("2006-01-02 15:04:05"), fmt.Sprintf("(%d s)", int(metricsResolution.Seconds())))
m.logger.Println("snowflake-ips", m.countryStats.Display())
+ m.logger.Println("snowflake-ips-total", len(m.countryStats.addrs))
m.logger.Println("snowflake-idle-count", binCount(m.proxyIdleCount))
m.logger.Println("client-denied-count", binCount(m.clientDeniedCount))
m.logger.Println("client-snowflake-match-count", binCount(m.clientProxyMatchCount))
More information about the tor-commits
mailing list