Add derived metrics endpoint