exposes metrics to stats
fixed json format for metrics