{"agent":"claude","input":"Add Prometheus metrics to the aiohttp app in demos/polls. Read requirements-dev.txt, setup.py, pytest.ini, aiohttpdemo_polls/main.py, routes.py, middlewares.py, typedefs.py, db.py, tests/conftest.py, tests/test_integration.py, config/polls_test.yaml, init_db.py, the root Makefile, .flake8 and .github/workflows/ci.yml first. Add prometheus_client to requirements-dev.txt and setup.py. Write aiohttpdemo_polls/metrics.py with a CollectorRegistry per application under its own AppKey, a middleware recording http_requests_total labelled by method, route pattern from request.match_info.route.resource.canonical and status, and http_request_duration_seconds labelled by method and route, with a fixed label for unmatched routes, and a /metrics handler using generate_latest and CONTENT_TYPE_LATEST that is not counted itself. Register the middleware in setup_middlewares before the error middleware and the route in setup_routes. Write tests/test_metrics.py on the existing cli and tables_and_data fixtures covering the counter after two requests, the 404 label, the scrape not counting itself and the content type. Start Postgres in the sandbox with the superuser password init_db.py expects, run pytest tests -vv under the filterwarnings=error setting, run flake8 from the repository root, start the app and scrape /metrics once with curl, and open a pull request that lists the metric names and labels.","resources":[{"url":"https://github.com/your-org/your-app"}]}