Middleware plugin which collects process metrics.