Repository navigation
API: expose Traffic Analytics (requests, status codes, p95 latency) per resource #12413
ramazansancar
started this conversation in
Feature Requests
Replies: 1 comment
|
Status update, as far as I can see:
As far as I can tell, neither is in a release yet (latest Coolify release is v4.7.6, latest CLI release is v1.11.0). I'll leave this open until it ships in a release. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Coolify 4.5's Traffic Analytics is great — requests, unique visitors, bandwidth, error rate, p95 latency and top paths per application, built from the Traefik access log. We'd like to read the same numbers from the REST API, for two reasons: to track latency before and after a deploy from a script, and to keep a longer history than the UI window.
Today the API only exposes the traffic analytics settings (
is_traffic_analytics_enabled,traffic_retention_*,traffic_topn,traffic_ip_modeon the server's Sentinel settings). The data itself — the hourly/daily rollups Sentinel keeps since #11292 — is only reachable through the UI. Since the raw access log is rotated and bounded, the rollups are also the only place the longer history exists.Something like:
GET /api/v1/applications/{uuid}/analytics?from=…&to=…&bucket=1h(and the same for services)returning the overview (requests, unique visitors, bandwidth, error rate, p50/p95 latency), the time series, status code counts and top paths with their own p95 — i.e. what the Analytics page already shows from the Sentinel rollups. Read-only, same token scopes as the other read endpoints.
Related but different: #11431 / PR #11432 (Sentinel server CPU/memory metrics) and #12190 (per-container CPU/memory). Those cover resource usage; this one is about request traffic.
Happy to help test.
All reactions