run metrics as a separate process