Energy dashboard configuration

I am still struggeling with the dashboard. The problem is I have succeded to display my smart meter settings, but i don’t understand exactly how it is working.
I have put the meter in the utility settings in the configuration yaml (is that nescesarry?) and after that I have put the sensors in the recorder and history and then it worked.
I want to have the energy consumption longer then a year, do i have to put in the recorder settings 367 days? The problem is that this recording is for all the recordings and then the database is growing very fast.
I’ll hope someone can me help me?

As far as I understand, you don’t need to change your recorder settings, because these sensors are long-term statistics sensors.

These will never be purged, more info can be found here:

Thanks a lot, this information explained everything.