docs: consolidate and update project documentation
- Fix port numbers across all docs (API :3001, Web :3000) - Add 6 missing modules to README, CLAUDE.md, and architecture doc (agents, health, inquiries, leads, reviews, metrics/web-vitals) - Add Swagger UI reference and /api/v1 prefix notes - Create docs/api-endpoints.md with complete REST API reference - Create docs/README.md as documentation index - Update deployment guide with Loki, Promtail, pg-backup services - Update health check table with all current endpoints Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -27,6 +27,10 @@ GoodGo Platform AI is a monorepo containing a NestJS backend, Next.js frontend,
|
||||
│ │ Search │ │ Admin │ │Subscriptions│ │
|
||||
│ ├────────┤ ├────────┤ ├─────────────┤ │
|
||||
│ │Analytics│ │ MCP │ │Notifications│ │
|
||||
│ ├────────┤ ├────────┤ ├─────────────┤ │
|
||||
│ │ Agents │ │Inquires│ │ Leads │ │
|
||||
│ ├────────┤ ├────────┤ ├─────────────┤ │
|
||||
│ │Reviews │ │ Health │ │ Metrics │ │
|
||||
│ └────────┘ └────────┘ └─────────────┘ │
|
||||
└───┬─────┬──────┬─────────┬──────────────┘
|
||||
│ │ │ │
|
||||
@@ -224,10 +228,12 @@ Python FastAPI microservice (`libs/ai-services/`) provides:
|
||||
|
||||
## Monitoring
|
||||
|
||||
- **Prometheus** scrapes `/metrics` endpoint every 15 seconds
|
||||
- **Prometheus** scrapes `/api/v1/metrics` endpoint every 15 seconds
|
||||
- **Grafana** dashboards auto-provisioned from `monitoring/grafana/dashboards/`
|
||||
- **Loki + Promtail** aggregate container logs; viewable in Grafana
|
||||
- **Pino** structured JSON logging with configurable log levels
|
||||
- Metrics include HTTP request duration, error rates, and custom business metrics
|
||||
- Metrics include HTTP request duration, error rates, web vitals, and custom business metrics
|
||||
- Log retention: 15 days (configured in `monitoring/loki/loki-config.yml`)
|
||||
|
||||
## Event System
|
||||
|
||||
|
||||
Reference in New Issue
Block a user