Metric reporting

implements #548