Metric history graphic cached

Missing acceptance tests

Signed off by: Renan Fichberg <rfichberg@gmail.com>