- Add /api/metrics/prometheus endpoint using prom-client (unauthenticated for scraping) - Update middleware to allow unauthenticated access to prometheus endpoint - Add /api/metrics permission routing (platform:read for GET) - Install prom-client dependency - Add metrics.md with Grafana dashboard JSON, Prometheus config, alerting rules
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"name": "admin",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "node server.js",
|
|
"start:original": "next start",
|
|
"lint": "eslint",
|
|
"db:migrate": "bun --env-file=.env.local src/lib/db/migrate.ts",
|
|
"test": "playwright test",
|
|
"test:ui": "playwright test --ui"
|
|
},
|
|
"dependencies": {
|
|
"@bufbuild/connect": "^0.13.0",
|
|
"@bufbuild/protobuf": "^2.11.0",
|
|
"@types/node-cron": "^3.0.11",
|
|
"argon2": "^0.44.0",
|
|
"bcrypt": "^5.1.1",
|
|
"clsx": "^2.1.1",
|
|
"date-fns": "^3.3.1",
|
|
"ioredis": "^5.10.1",
|
|
"jose": "^5.2.0",
|
|
"lucide-react": "^0.344.0",
|
|
"next": "16.2.4",
|
|
"node-cron": "^4.2.1",
|
|
"pg": "^8.11.3",
|
|
"prom-client": "^15.1.3",
|
|
"react": "19.2.4",
|
|
"react-dom": "19.2.4",
|
|
"tailwind-merge": "^2.2.0",
|
|
"uuid": "^9.0.0",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.59.1",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/bcrypt": "^5.0.2",
|
|
"@types/ioredis": "^5.0.0",
|
|
"@types/node": "^20",
|
|
"@types/pg": "^8.11.0",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@types/uuid": "^9.0.7",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.2.4",
|
|
"tailwindcss": "^4",
|
|
"tsx": "^4.7.0",
|
|
"typescript": "^5"
|
|
}
|
|
}
|