feat(metrics): add per-domain HTTP request rate metrics
This commit is contained in:
@@ -644,6 +644,7 @@ impl HttpProxyService {
|
||||
let ip_str = ip_string; // reuse from above (avoid redundant to_string())
|
||||
self.metrics.record_http_request();
|
||||
if let Some(ref h) = host {
|
||||
self.metrics.record_http_domain_request(h);
|
||||
self.metrics.record_ip_domain_request(&ip_str, h);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user