Files
errors.bitreport.pt/ingest-api/package.json
T
Peter Spark c6e4305c79 feat(observability): stats endpoint, Prometheus metrics, SLO tracking, Grafana dashboard (BIT-734)
- 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
2026-04-02 18:26:24 +00:00

34 lines
814 B
JSON

{
"name": "@bitreport/error-reporting-ingest-api",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "Passive HTTP ingest for BitReport central error reporting (BIT-154.3)",
"scripts": {
"dev": "tsx watch src/server.ts",
"build": "tsc",
"start": "node dist/server.js",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@fastify/rate-limit": "^9.1.0",
"@fastify/swagger": "^8.15.0",
"@fastify/swagger-ui": "^3.1.0",
"dotenv": "^16.4.5",
"fastify": "^4.28.1",
"mysql2": "^3.11.5",
"prom-client": "^15.1.3"
},
"devDependencies": {
"@types/node": "^22.9.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"vitest": "^2.1.0"
},
"engines": {
"node": ">=20"
}
}