You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, mtproxymax traffic
shows user traffic, but the mtproxymax traffic reset-global
command doesn't reset these counters as expected.
Is there a working way to reset the counters so I can monitor daily resource consumption dynamics?
Thank you!
Traffic and quotas are cumulative by default. Use mtproxymax secret quota-reset for a recurring monthly quota period, or mtproxymax secret reset-traffic <label> to start a new period manually. mtproxymax traffic shows usage since each counter's most recent reset; its server-wide Total is independent from per-user resets.
mtproxymax secret setlimits alice 100 5 10G 2026-12-31
Copy code to clipboard mtproxymax secret setlimits alice 100 5 10G 2026-12-31
mtproxymax traffic reset-global This command resets the total traffic for the entire proxy, but not for individual users.
I have explained above how to reset the traffic for each user separately.
Server-wide Total Counter: Tracks cumulative traffic passing through the entire proxy server across all connections. Previously, mtproxymax traffic reset-global only reset this total server counter without touching individual user counters or quotas.
Per-User Traffic Counters: Track cumulative consumption per individual secret/user, which determines user quota limits.
What We Added to Resolve This (Commit a5f5c3d):
We have introduced dedicated commands under traffic to make resetting and monitoring daily dynamics straightforward:
Reset both the server total and all user traffic in one command:
mtproxymax traffic reset-all -y
Reset only all per-user traffic counters:
mtproxymax traffic reset-users
# or: mtproxymax secret reset-traffic all
Reset a single user's traffic counter:
mtproxymax secret reset-traffic <label>
Monitoring Daily Resource Consumption Dynamics:
To automatically reset counters every midnight and track daily consumption, you can set up a daily cron job:
Activity
rmtshnik commentedon Oct 23, 2026
Traffic and quotas are cumulative by default. Use mtproxymax secret quota-reset for a recurring monthly quota period, or
mtproxymax secret reset-traffic <label>to start a new period manually. mtproxymax traffic shows usage since each counter's most recent reset; its server-wide Total is independent from per-user resets.mtproxymax secret setlimits alice 100 5 10G 2026-12-31
Copy code to clipboard
mtproxymax secret setlimits alice 100 5 10G 2026-12-31mtproxymax traffic reset-global This command resets the total traffic for the entire proxy, but not for individual users.
I have explained above how to reset the traffic for each user separately.
mtproxymax secret reset-traffic <label>feat(traffic): add reset-all and reset-users commands for daily consu…
SamNet-dev commentedon Oct 27, 2026
Hello @ralex52,
Thank you for bringing this up!
How Traffic Counters Work in MTProxyMax:
mtproxymax traffic reset-globalonly reset this total server counter without touching individual user counters or quotas.What We Added to Resolve This (Commit
a5f5c3d):We have introduced dedicated commands under
trafficto make resetting and monitoring daily dynamics straightforward:Reset both the server total and all user traffic in one command:
Reset only all per-user traffic counters:
mtproxymax traffic reset-users # or: mtproxymax secret reset-traffic allReset a single user's traffic counter:
Monitoring Daily Resource Consumption Dynamics:
To automatically reset counters every midnight and track daily consumption, you can set up a daily cron job:
Closing this issue as resolved. Please update your installation with
mtproxymax updateto receive these commands!