Debug UI & HTTP API
FrogDB includes a built-in web UI for diagnostics and a JSON API for programmatic access to server state.
Enable the HTTP server and set an authentication token for protected endpoints:
frogdb-server --http-port 9090 --http-token my-secret-tokenOr via configuration:
[http]enabled = truebind = "127.0.0.1"port = 9090token = "my-secret-token"Health Endpoints
Section titled “Health Endpoints”These endpoints are unauthenticated and suitable for load balancer and Kubernetes probes.
| Endpoint | Description | Response |
|---|---|---|
GET /health/live | Liveness probe — process is running | 200 if alive, 503 if shutting down |
GET /health/ready | Readiness probe — accepting commands | 200 if ready, 503 if starting or shutting down |
Kubernetes probe configuration:
livenessProbe: httpGet: path: /health/live port: 9090 initialDelaySeconds: 5readinessProbe: httpGet: path: /health/ready port: 9090 initialDelaySeconds: 5Metrics Endpoint
Section titled “Metrics Endpoint”| Endpoint | Description |
|---|---|
GET /metrics | Prometheus-format metrics |
See Metrics Reference for the full list.
Status API
Section titled “Status API”| Endpoint | Description |
|---|---|
GET /status/json | Machine-readable server status (JSON) |
Also available via the Redis protocol: STATUS JSON
Debug Web UI
Section titled “Debug Web UI”Navigate to http://<host>:<port>/debug/ in a browser to access the debug web interface.
The UI provides:
- Overview — server info, memory usage, connection count, command throughput
- Performance — slowlog entries, latency statistics
- Cluster — cluster topology and node status
- Configuration — current configuration values
- Diagnostic Bundles — generate and download diagnostic snapshots
Debug JSON API
Section titled “Debug JSON API”All /debug/api/* endpoints require Bearer token authentication:
curl -H "Authorization: Bearer my-secret-token" http://localhost:9090/debug/api/metrics| Endpoint | Description |
|---|---|
GET /debug/api/cluster | Cluster topology and state |
GET /debug/api/config | Current configuration values |
GET /debug/api/metrics | Current metrics snapshot (JSON) |
GET /debug/api/clients | Connected clients list |
GET /debug/api/slowlog | Slowlog entries |
GET /debug/api/latency | Latency statistics |
Diagnostic Bundles
Section titled “Diagnostic Bundles”Generate a diagnostic bundle containing server state, configuration, metrics, slowlog, and other information useful for troubleshooting:
| Endpoint | Description |
|---|---|
GET /debug/api/bundle/generate | Generate and download a new diagnostic bundle |
GET /debug/api/bundle/list | List previously generated bundles |
GET /debug/api/bundle/{id} | Download a specific bundle by ID |
# Generate and download a bundlecurl -H "Authorization: Bearer my-secret-token" \ http://localhost:9090/debug/api/bundle/generate -o bundle.tar.gz
# List available bundlescurl -H "Authorization: Bearer my-secret-token" \ http://localhost:9090/debug/api/bundle/listSee Also
Section titled “See Also” Observability Metrics, tracing, and logging
Monitoring Alerting thresholds and dashboards
Performance Tools Slowlog, latency bands, and profiling