Real-time monitoring of the grid