Measuring our electricity consumption with a Raspberry Pi

Continuing with documents of curious things we can do with a Raspberry Pi, Something very simple to achieve is for example to measure the electricity consumption of whatever we want, In this document we will see how to connect non-invasive current sensors to a Raspberry Pi and measure the cost of our home, since we will connect it to the electrical panel of our house! We will export the metrics to a MySQL database and then with Grafana we will create a dashboard where we can see in a very intuitive way what we spend on and how much!