GlassWire is not available for Mac but there are plenty of alternatives that runs on macOS with similar functionality. The best Mac alternative is Little Snitch. It's not free, so if you're looking for a free alternative, you could try Sniffnet or LuLu by Objective-See. If that doesn't suit you, our users have ranked more than 50 alternatives to GlassWire and 15 are available for Mac so hopefully you can find a suitable replacement. Other interesting Mac alternatives to GlassWire are NetWorx, Tiny Shield, Net Bar and BitMeter OS.
Little Snitch doesn't provide detailed statistics on a longer time base but is more intended for real time. It is however a great application and I would call it a "reverse firewall".