Clear map of seen proxy IP addresses

We were not previously clearing the map we keep of seen IP addresses,
which resulted in our unique proxy IP counts representing churn rather
than unique IP counts per day, except during broker process restarts.
This commit is contained in:
Cecylia Bocovich 2025-08-14 14:06:46 -04:00
parent 43a35655ad
commit c8b0b31601
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90

View file

@ -275,6 +275,8 @@ func (m *Metrics) printMetrics() {
m.logger.Println("snowflake-ips-nat-restricted", m.loadAndZero("proxy-nat-restricted"))
m.logger.Println("snowflake-ips-nat-unrestricted", m.loadAndZero("proxy-nat-unrestricted"))
m.logger.Println("snowflake-ips-nat-unknown", m.loadAndZero("proxy-nat-unknown"))
m.ips.Clear()
}
// binCount rounds count up to the next multiple of 8. Returns 0 on integer