json-based metrics collector