Best and simplest option for persisting dates with historical values

I understand that one of the big advantages of rrd4j is that it automatically limits the size of the database. How does MariaDb compare?

I found instructions for setting it up here - not too bad.