{"agent":"claude","input":"Add Prometheus metrics to this Go service, which uses GORM and gin. Read go.mod, app.go, database/database.go, router/router.go, api/message.go, auth/authentication.go, config/config.go, config/keys.go, config/parse.go, gotify-server.env.example, Makefile, docs/swagger.go and .github/workflows/build.yml first. Register gorm.io/plugin/prometheus in database.New with DBName gotify, the default refresh interval and StartServer false, adding the plugin's MySQL collector with Threads_running when the dialect is mysql. Add a metrics package with a request duration histogram labelled by method, route from ctx.FullPath() and status, recorded by a gin middleware after accessLogger that skips /stream and /metrics, and a messages created counter incremented in createMessage. Serve promhttp.Handler at GET /metrics behind authentication.RequireAdmin, with a swagger:operation comment, and only when a new GOTIFY_METRICS_ENABLED setting is true, following the existing config and keys pattern and documenting it in gotify-server.env.example. Run make download-tools and make update-swagger and commit docs/spec.json. Add integration tests in router/router_test.go for 401 without a token, 200 with the admin token containing gorm_dbstats_open_connections, and 404 when disabled. Run go test --race ./... and golangci-lint run, start the server on SQLite with metrics on, post a message, scrape /metrics with curl, and paste the scrape and the test output into the pull request. Change nothing else about routes or authentication.","resources":[{"url":"https://github.com/your-org/your-app"}]}