Cardiovascular disease is the leading cause of death worldwide and patients with severe symptoms undergo cardiac surgery. Even after uncomplicated surgeries, some patients experience postoperative complications such as lung injury. We hypothesized that the procedure elicits metabolic activity that can be related to the disease progression, which is commonly observed two-three days postoperatively. More than 700 blood samples were collected from 50 patients at nine time points pre-, intra-, and postoperatively. Dramatic metabolite shifts were observed during and immediately after the intervention. Prolonged surgical stress was linked to an augmented anaerobic environment. Time series analysis showed shifts in purine-, nicotinic acid-, tyrosine-, hyaluronic acid-, ketone-, fatty acid, and lipid metabolism. A characteristic 'metabolic biosignature' was identified correlating with the risk of developing postoperative complications two days before the first clinical signs of lung injury. Hence, this study demonstrates the link between intra- and postoperative time-dependent metabolite changes and later postoperative outcome. In addition, the results indicate that metabotyping patients' journeys early, during or just after the end of surgery, may have potential impact in hospitals for the early diagnosis of postoperative lung injury, and for the monitoring of therapeutics targeting disease progression.