- GET /api/error-monitoring/stats: 24h ingestion volume, severity distribution, per-project metrics with resolution rates, hourly trend - Prometheus /metrics on both api (port 3200) and ingest-api (port 3041) with HTTP request duration histograms, ingest SLO latency (p50/p95/p99), event throughput counters, domain gauges - Grafana dashboard JSON (deploy/grafana/) with SLO panels, error volume, severity/state distribution, per-project charts, Node.js process metrics - SLO runbook (docs/RUNBOOK_SLO.md): alert rules, scrape config, triage procedures for latency, error rate, and availability breaches Paperclip-Agent: Peter Spark (urlKey peter-spark; id 49ce66f8-6be6-4644-afd3-eb6d8d0d4b3e) Paperclip-Issue: BIT-734 Paperclip-Run: f45bcdc4-4757-4829-8e75-b60a8f9a7be4
37 lines
952 B
JSON
37 lines
952 B
JSON
{
|
|
"name": "@errors-bitreport/api",
|
|
"version": "0.1.0",
|
|
"description": "BitReport Error Reporting Platform — Fastify API",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"db:migrate": "bash ../scripts/run-mysql-migrations.sh"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/cookie": "^9.3.1",
|
|
"@fastify/helmet": "^11.1.1",
|
|
"@fastify/jwt": "^8.0.1",
|
|
"@fastify/rate-limit": "^9.1.0",
|
|
"@fastify/swagger": "^8.14.0",
|
|
"@fastify/swagger-ui": "^3.0.0",
|
|
"bcrypt": "^5.1.1",
|
|
"fastify": "^4.27.0",
|
|
"mysql2": "^3.11.5",
|
|
"pino": "^9.1.0",
|
|
"prom-client": "^15.1.3",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bcrypt": "^5.0.2",
|
|
"@types/node": "^20.14.0",
|
|
"tsx": "^4.15.6",
|
|
"typescript": "^5.4.5",
|
|
"vitest": "^1.6.0"
|
|
}
|
|
}
|