Added JSON formatting to monitoring metrics.