Skip to content

Operations, Health, and Metrics

  • Health


    /health and /ready for liveness and readiness.

  • Metrics


    /metrics for Prometheus. Plus Postgres exporter for DB metrics.

  • Runtime Control


    Inspect and restart containers via Docker endpoints.

Get started Configuration API

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"]
import httpx
print(httpx.get("http://127.0.0.1:8012/api/docker/status").json())
curl -sS http://127.0.0.1:8012/api/docker/status | jq .
await fetch('/api/docker/status').then(r => r.json())
  • 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.