[To refactor] Sending statistics to service discovery