Skip to content

Metrics and logs

Metrics collects CPU, load, memory, network, disk and web server requests every 10 seconds, plus requests, the 5xx error share and p95 for each site. Disks get a fill forecast.

Retention: per minute for 48 hours, per 5 minutes for 30 days, per hour for a year.

Prometheus can scrape /api/v1/metrics/prometheus: it needs an API token with the metrics:read scope, see MCP and API.

Site Analytics keeps visits per hour for 400 days and top lists for 90 days.

Logs searches nginx, container, journald and panel logs and security events. Without external storage the search runs over local files, and long periods are slow to search.

For long retention and fast search you can connect VictoriaLogs: as an app from the library or by an external address. If VictoriaLogs is down, the panel shows local logs.

Settings are in Logs → Rotation. nginx logs rotate daily and are compressed. The panel sets limits on first start by disk size: from 160 GB, up to 100 MB per file and 700 MB of history per log, and container logs 3 files of 10 MB; smaller disks get less. The systemd journal is limited too.