Open energy monitoring

I have installed openhab and oem binding on my RPI. I need to monitor power factor,active power ,reactive power,apparent power,voltage,current,power consumed and tariff. So, how to do that? I need circuit diagram and code for it…please do help me out, give me any source or suggestion to that