mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Remove proxy churn measurements from broker.
We've done the analysis we planned to do on these measurements. A program to analyze the proxy churn and extract hour-by-hour intersections is available at: https://github.com/turfed/snowflake-paper/tree/main/figures/proxy-churn Closes #40280.
This commit is contained in:
parent
a615e8b1ab
commit
6393af6bab
12 changed files with 0 additions and 362 deletions
|
@ -16,7 +16,6 @@ import (
|
|||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"gitlab.torproject.org/tpo/anti-censorship/geoip"
|
||||
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/ipsetsink/sinkcluster"
|
||||
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/messages"
|
||||
)
|
||||
|
||||
|
@ -42,8 +41,6 @@ type Metrics struct {
|
|||
logger *log.Logger
|
||||
geoipdb *geoip.Geoip
|
||||
|
||||
distinctIPWriter *sinkcluster.ClusterWriter
|
||||
|
||||
countryStats CountryStats
|
||||
clientRoundtripEstimate time.Duration
|
||||
proxyIdleCount uint
|
||||
|
@ -327,13 +324,3 @@ func initPrometheus() *PromMetrics {
|
|||
|
||||
return promMetrics
|
||||
}
|
||||
|
||||
func (m *Metrics) RecordIPAddress(ip string) {
|
||||
if m.distinctIPWriter != nil {
|
||||
m.distinctIPWriter.AddIPToSet(ip)
|
||||
}
|
||||
}
|
||||
|
||||
func (m *Metrics) SetIPAddressRecorder(recorder *sinkcluster.ClusterWriter) {
|
||||
m.distinctIPWriter = recorder
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue