HUB
Sign inSign up
telemetry-extended-query logo

repodb/telemetry-extended-query

By repodb

•Updated 16 days ago

A RESTful API that queries extended telemetry data from PGSQL (operational) and disk (historical).

Image
API management
Developer tools
Monitoring & observability
0

92

repodb/telemetry-extended-query repository overview

⁠RepoDB Extended Telemetry Query API

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.

⁠Running with Docker

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.

⁠Endpoints

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.

RouteReturns
/session/{session_id}Events of a session, across all groups and dates.
/correlationEvents matching trace_id, span_id and/or session_id.
/groupsStatistics per group.
/group/{group}/eventsFull events, newest first, with application, operation, limit and offset.
/group/{group}/statisticsStatistics per group, application and operation, with application and operation filters (default *, meaning all).
/group/{group}/performanceDuration 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.

⁠Authentication

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.

⁠Configuration

The service is configured entirely via environment variables:

VariableRequiredDescription
API_KEYNoShared secret required by all endpoints via the X-API-Key header.
CONNECTION_STRINGYesPostgreSQL connection string used for operational queries (e.g. postgresql://user:pass@host:5432/db).
DIRECTORY_PATHNoRoot directory containing the historical files. Defaults to /tmp/repodb/telemetry/extended.
ALLOWED_ORIGINSNoComma-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_METHODSNoComma-separated list of HTTP methods allowed by CORS. Defaults to GET.
ALLOWED_HEADERSNoComma-separated list of request headers allowed by CORS, or * to allow any header. Defaults to *.
LOG_LEVELNoLogging verbosity (DEBUG, INFO, WARNING, etc.). Defaults to DEBUG.

Tag summary

Content type

Image

Digest

sha256:ab053c027…

Size

151.6 MB

Last updated

16 days ago

docker pull repodb/telemetry-extended-query