67 Commits
Author SHA1 Message Date
Aditya Tripathi a5cfa7c238 feat(traffic): add global analytics page with status time series
Replace the server-scoped Analytics Livewire component with an
app-wide one that filters by server/application and supports live
refresh. Add a per-bucket status-class time series endpoint/data
class for a stacked-area chart, falling back to the donut when the
Sentinel build doesn't support it. Decorate top-path rows with their
owning domain, expand breakdown dimensions to agent/ip/useragent, and
raise path/breakdown result limits. Capture X-Forwarded-For,
User-Agent, and Referer headers in traefik access logs (now enabled
in dev too) so IP, browser, and referrer breakdowns work. Add
flag-image and referer-host helpers for geo/referrer rendering.
2026-08-12 08:50:58 +00:00
Aditya Tripathi 872f8aafb8 feat(traffic): add live refresh, geo maps, and app overview widget
- Add live 24h polling toggle to server/application analytics views
- Add geo visualization (world map, country flags/names) for traffic
- Add dashboard nudge for servers eligible but not yet analytics-enabled
- Add lazy-loaded TrafficOverview widget to application General page
- Default-enable traffic analytics on new eligible server settings
- Rotate Caddy access logs via lumberjack roll options
- Add Traefik logrotate sidecar for copytruncate access-log rotation
2026-08-11 10:55:50 +00:00
Aditya Tripathi 0c06b5e0d1 fix(traffic): validate sentinel app keys, gate caddy log volume + swarm toggle, null-safe link 2026-08-11 03:32:16 +00:00
Aditya Tripathi d1f6fd4906 fix(traffic): show empty-state when all dashboard analytics fetches fail 2026-08-10 20:46:42 +00:00
Aditya Tripathi 70f7d7452e feat(traffic): add team dashboard traffic analytics 2026-08-10 20:41:08 +00:00
Aditya Tripathi 3e7972349d feat(traffic): add server analytics view 2026-08-10 20:32:31 +00:00
Aditya Tripathi 3439f0fe63 feat(traffic): add application analytics view 2026-08-10 20:23:24 +00:00
Aditya Tripathi 045a222164 feat(traffic): add server traffic analytics toggle
Adds toggleTrafficAnalytics() to the Sentinel settings component (restarts
proxy + recreates Sentinel via ConfigureTrafficAnalytics), plus an optional
MaxMind GeoIP license key field, with a wire:confirm warning about the
brief connectivity blip.
2026-08-10 20:09:04 +00:00
Aditya Tripathi 94e5da192a feat(traffic): add team traffic aggregation service
Implements pure service to sum traffic overviews across multiple servers
for team dashboard. Additive fields (requests, bytes, statuses) are summed;
latency percentiles take the max and are flagged approximate when
aggregating multiple servers.
2026-08-10 20:00:37 +00:00
Aditya Tripathi 9ad210c7b0 feat(traffic): cache Sentinel traffic responses for 60s 2026-08-10 19:58:13 +00:00
Aditya Tripathi 2ce3bce608 feat(traffic): add Sentinel traffic pull client 2026-08-10 19:52:17 +00:00
Aditya Tripathi b4a5236e4e feat(traffic): add traffic analytics DTOs 2026-08-10 19:46:39 +00:00
Aditya Tripathi 859258e0a1 feat(traffic): add enable/disable orchestration action
Adds ConfigureTrafficAnalytics::run(Server, bool) which sets the
is_traffic_analytics_enabled flag, force-regenerates the proxy config,
dispatches RestartProxyJob, and recreates Sentinel with restart: true.
2026-08-10 19:41:18 +00:00
Aditya Tripathi 1ce21d7174 feat(traffic): pass traffic env + proxy log mount to Sentinel 2026-08-10 19:35:01 +00:00
Aditya Tripathi bb7ad7ab12 feat(traffic): stamp coolify_app_id + JSON access log on Caddy sites 2026-08-10 19:27:57 +00:00
Aditya Tripathi e8e651bd7e feat(traffic): enable Traefik JSON access log when analytics on 2026-08-10 19:19:42 +00:00
Aditya Tripathi 99b25fbd8a feat(traffic): add traffic analytics server settings 2026-08-10 19:15:46 +00:00