Monitoring & export¶
Monitoring is a first-class part of fr0ntier: everything is collected and stored on the firewall itself, and everything can be exported natively.
What is collected¶
| Area | Metrics |
|---|---|
| System | CPU total and per core, load, frequency, memory, swap, processes, uptime, daemon memory |
| Raspberry Pi | SoC temperature per zone, throttling and under-voltage flags (now / since boot) |
| Storage | usage per filesystem, read/write throughput per disk, S.M.A.R.T. (temperature, wear, power-on hours, media errors) for NVMe/SATA |
| Interfaces | rx/tx bits per second, packets, errors, drops, link state, speed, Wi-Fi signal and AP clients |
| Firewall | packets/bytes per policy, NAT rule, implicit deny, SYN-flood drops; conntrack usage |
| Gateways | up/down, latency, packet loss per monitored WAN |
| VPN | WireGuard peer state, handshake age and throughput; OpenVPN clients; IPsec SAs |
| Services | DHCP leases; DNS queries, blocked, cached, cache hit %, upstream latency/health |
The full list is in the metrics reference.
Local storage¶
The embedded time-series store keeps each series at four resolutions:
| Tier | Default | Configurable |
|---|---|---|
| raw (collection interval, 10 s) | 24 hours | raw_hours |
| 1-minute average | 7 days | minute_days |
| 5-minute average | 30 days | fivemin_days |
| 1-hour average | 365 days | hour_days |
Charts automatically use the finest tier covering the selected range. With an NVMe drive you can keep, for example, 7 days raw and 5 years hourly.
Logs and events¶
| Stream | Source |
|---|---|
firewall |
policies with logging and the implicit deny, through NFLOG (or the kernel log) |
dns |
every DNS query (written by the DNS server) |
audit |
logins, configuration changes, commits, rollbacks, CLI commands, shell sessions |
alert |
alert state changes |
flow |
finished connections with bytes and duration (optional, flow log) |
system |
daemon start, gateway up/down… |
Logs are stored as JSON lines per day, compressed after the day ends and pruned by age and total size. Monitoring → Firewall Log and Events & Audit offer search, filters and a live mode.
Sessions and top talkers¶
Sessions shows the conntrack table with NAT translations and byte counters. Top Talkers computes per-host and per-service throughput from conntrack deltas, so it keeps working with fast-path offload. Host names come from DHCP.
Alerts¶
Alert rules compare a metric (optionally filtered by labels, e.g. iface=port1) with a
threshold for a duration. Default rules cover CPU, memory, temperature, throttling, disk
space, conntrack usage, gateway down and gateway loss. States: pending → firing →
resolved. Notifiers: webhook (JSON), Slack, Discord, ntfy, Telegram and e-mail (SMTP
STARTTLS/TLS). Each notifier has a Test button.
Exporters¶
| Type | Data | Notes |
|---|---|---|
| Prometheus | metrics | own listener (e.g. :9273/metrics), optional bearer token and allowed scrapers; enable the prometheus access on the interface |
| InfluxDB | metrics | v2 (org/bucket/token) or v1 (database, user/password), line protocol |
| Graphite | metrics | plaintext TCP |
| Syslog | events (+ metrics) | RFC 5424, RFC 3164, CEF or JSON over UDP, TCP (octet counting) or TLS — Wazuh, Graylog, QRadar, ArcSight, rsyslog… |
| HTTP | events (+ metrics) | JSON, NDJSON, Splunk HEC, Elasticsearch/OpenSearch bulk, Grafana Loki; token, basic auth, custom header |
| File | events (+ metrics) | daily JSONL files in a directory such as a NAS (NFS/SMB) or USB mount, with retention |
Each exporter chooses its streams (metrics, firewall, dns, audit, alert,
flow, system) and reports sent/error/dropped counters in the UI. See the
SIEM guide for ready-to-use examples.