Minor change on syntax

I just changed the syntax of one code block in the metrics controller to
use the do-end notation instead of brackets for better readability.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>