A RESTful API that queries extended telemetry data from PGSQL (operational) and disk (historical).
92
A RESTful API that queries the extended telemetry emitted by RepoDB libraries, from both operational (RepoDB PGSQL) and historical (Parquet files generated by the Extended File Data Sinker service) storage.
Create the volume and network (skip if they already exist):
docker volume create repodb_telemetry_extended_data
docker network create repodb
Build the image:
docker build . -t repodb/telemetry-extended-query:latest
Run the image:
docker run -d --name repodb-telemetry-extended-query \
-p 5003:5003 \
-e API_KEY=RepoDB2026 \
-e CONNECTION_STRING="postgresql://postgres:RepoDB2026@repodb-insights-postgres:5432/repodb_insights" \
-e DIRECTORY_PATH=/data/telemetry/extended \
-v repodb_telemetry_extended_data:/data/telemetry/extended:ro \
--network=repodb \
repodb/telemetry-extended-query:latest
The API listens on port 5003. Interactive API docs are available at /docs (Swagger UI) and /redoc (ReDoc). The volume is the one written by the Extended File Data Sinker, mounted read-only.
All routes use the /v1/telemetry/extended prefix. Every route exists twice: /operational/query/... reads PostgreSQL and /historical/query/... reads the archive files. Parameters and row shapes are identical.
| Route | Returns |
|---|---|
/session/{session_id} | Events of a session, across all groups and dates. |
/correlation | Events matching trace_id, span_id and/or session_id. |
/groups | Statistics per group. |
/group/{group}/events | Full events, newest first, with application, operation, limit and offset. |
/group/{group}/statistics | Statistics per group, application and operation, with application and operation filters (default *, meaning all). |
/group/{group}/performance | Duration buckets per group, application and operation, with bucketSeconds and the same filters. |
The statistics and performance rows include summed totalMemoryBytes, totalReadBytes and totalWriteBytes. The service also serves the Default-compatible query and export routes under /v1/telemetry/default. See Extended telemetry for the parameters and the row fields.
Every endpoint (except /docs, /redoc, and /openapi.json) requires the shared API key, matching the API_KEY environment variable, supplied through the X-API-Key header. The Default-compatible routes also accept it as the hidden api_key query parameter.
The service is configured entirely via environment variables:
| Variable | Required | Description |
|---|---|---|
API_KEY | No | Shared secret required by all endpoints via the X-API-Key header. |
CONNECTION_STRING | Yes | PostgreSQL connection string used for operational queries (e.g. postgresql://user:pass@host:5432/db). |
DIRECTORY_PATH | No | Root directory containing the historical files. Defaults to /tmp/repodb/telemetry/extended. |
ALLOWED_ORIGINS | No | Comma-separated list of origins allowed to call the API from a browser (CORS). Defaults to http://localhost:3000. Must match the calling origin exactly, with no trailing slash. |
ALLOWED_METHODS | No | Comma-separated list of HTTP methods allowed by CORS. Defaults to GET. |
ALLOWED_HEADERS | No | Comma-separated list of request headers allowed by CORS, or * to allow any header. Defaults to *. |
LOG_LEVEL | No | Logging verbosity (DEBUG, INFO, WARNING, etc.). Defaults to DEBUG. |
Content type
Image
Digest
sha256:ab053c027…
Size
151.6 MB
Last updated
16 days ago
docker pull repodb/telemetry-extended-query