Files
EvoFirewall/packages/db/migrations/008_total_packets.sql
T
Denozordec 69e903aa1b
Build and Push EvoFirewall Docker Image / build-and-push (push) Successful in 2m26s
Build and Push EvoFirewall Docker Image / create-release (push) Skipped
feat(api, web): enhance agent traffic statistics and update installation scripts
- Improved the collection and reporting of agent traffic statistics, including total packets dropped and accepted, to provide a more comprehensive view of agent performance.
- Updated the `evofw-firewall.sh` script to capture and report traffic statistics before chain recreation, ensuring accurate data retention.
- Enhanced the installation script to support updates on already-installed agents, allowing for script and timer refresh without re-enrollment, while preserving existing credentials.
- Refactored UI components to utilize new traffic statistics, improving clarity and user experience in displaying agent performance metrics.

These changes enhance the overall functionality and usability of the agent management system, providing better insights and easier updates for users.
2026-07-23 19:47:17 +07:00

10 lines
461 B
SQL

-- Cumulative packet counters (survive policy re-apply / nft chain recreate).
ALTER TABLE agents ADD COLUMN total_packets_dropped INTEGER NOT NULL DEFAULT 0;
ALTER TABLE agents ADD COLUMN total_packets_accepted INTEGER NOT NULL DEFAULT 0;
-- Seed from last snapshot so existing fleet doesn't jump to zero.
UPDATE agents
SET
total_packets_dropped = COALESCE(last_apply_packets_dropped, 0),
total_packets_accepted = COALESCE(last_apply_packets_accepted, 0);