Edit for compound metrics.

Missing unit tests and acceptance tests.

signed-off-by: Diego Araújo <diegoamc90@gmail.com>