Handling monthly consumed energy

I configured all my outlets to know the monthly consumption of each of them. But how do I check the total consumption after the end of each month? The monthly consumption is reset every month, now my problem is to add up the consumption of each month thus having the management of the electricity consumed. Is there a way to add up the consumption month by month and how to store the various monthly consumption somewhere?