Influx db and grafana configuration for PV measures

Hello,
Somebody has an existing configuration to have correct measures for a PV system?
Basically I have these measures that I would like to store correctly to have good graphs, these are my measurement got from my modbus on inverter:

  • current pv power
  • total day production (resetted at midnight)
  • total production
  • total purchased
  • daily purchased
  • total sold
  • daily sold

A question should be, in general how are stored measurement that are daily and resetted at midnight for example?

Thank you