Operations, Health, and Metrics
-
Health
/healthand/readyfor liveness and readiness. -
Metrics
/metricsfor Prometheus. Plus Postgres exporter for DB metrics. -
Runtime Control
Inspect and restart containers via Docker endpoints.
Readiness Gate
Gate traffic on /api/ready. It verifies DB connectivity before admitting load.
Container Logs
Use /docker/{container}/logs for ad-hoc log pulls, or rely on Loki for aggregation.
Restarts
Prefer coordinated restarts via the API (or compose) to avoid dropping in-flight requests.
Endpoints
| Endpoint | Description |
|---|---|
/api/docker/status | Container status |
/api/docker/containers | List TriBrid-managed containers |
/api/docker/containers/all | List all containers |
/api/docker/{container}/restart | Restart container |
/api/docker/{container}/logs | Tail logs |
flowchart LR
Scrape["Prometheus"] --> API_METRICS["/metrics"]
API_METRICS --> APP["TriBridRAG"]
APP --> PG["Postgres"]
APP --> NEO["Neo4j"]
Scrape --> PExp["postgres-exporter"] - Gate traffic with readiness
- Alert on 5xx and slow search
- Monitor DB connection pool saturation and timeouts
- Define SLOs for p95 latency per endpoint
Grafana
Default dashboard UID tribrid-overview is embedded in the UI. Customize datasource/dashboards via mounted provisioning files.