Graphic of metric history with caching

Pending unit tests

Signed off by: Rafael Reggiani Manzo <rr.manzo@gmail.com>