Extract metrics out into its own proces