Middleware plugin which collects OS metrics.