handle both old and new log-runtime-metrics formats