diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index b8b8807f..f1d572ba 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -92,7 +92,8 @@ function getGuideSidebarZhCN() { { text: 'Agent 启动/上线 问题自检流程', link: '/guide/q2' }, { text: '如何反向代理 gRPC 端口', link: '/guide/q3' }, { text: '实时通道断开/在线终端连接失败', link: '/guide/q4' }, - { text: '如何进行数据迁移、备份恢复?', link: '/guide/q5' } + { text: '如何进行数据迁移、备份恢复?', link: '/guide/q5' }, + { text: '如何每月重置流量统计?', link: '/guide/q6' } ] }, { @@ -144,7 +145,8 @@ function getGuideSidebarEnUS() { { text: 'Let the Agent start/on-line, and the self-test process of the problem', link: '/en_US/guide/q2' }, { text: 'Reverse Proxy gRPC Port (support Cloudflare CDN)', link: '/en_US/guide/q3' }, { text: 'Real-time channel disconnection/online terminal connection failure', link: '/en_US/guide/q4' }, - { text: 'How do I migrate my data to the new server and restore my backups?', link: '/en_US/guide/q5' } + { text: 'How do I migrate my data to the new server and restore my backups?', link: '/en_US/guide/q5' }, + { text: 'How to set up a monthly reset of data statistics?', link: '/en_US/guide/q6' } ] }, { diff --git a/docs/en_US/guide/q6.md b/docs/en_US/guide/q6.md new file mode 100644 index 00000000..3f71b9cc --- /dev/null +++ b/docs/en_US/guide/q6.md @@ -0,0 +1,12 @@ +#### How to set up a monthly reset of transfer statistics? + +In the home page, the traffic statistics will be reset when the server is restarted. +If you want to set the traffic statistics to be reset once a month, you can do it like this: + +1. Go to the ` Notification` page of the admin panel +2. Refer to [this document](/en_US/guide/notifications.html#special-any-cycle-transfer-notification) to create a monthly transfer statistics notification +3. Return to the home page and you can see the monthly transfer statistics in the `Service` page, where the statistics will not be reset when the server is restarted + +::: tip +This method can be set to any period, including and not limited to hourly/daily/weekly/monthly/yearly reset transfer statistics, very flexible! +::: \ No newline at end of file diff --git a/docs/guide/q6.md b/docs/guide/q6.md new file mode 100644 index 00000000..ff5d2d9c --- /dev/null +++ b/docs/guide/q6.md @@ -0,0 +1,11 @@ +#### 如何每月重置流量统计? + +主页中的流量统计每次服务器重启时都会重置,如果要实现每月重置一次流量计数,可以这样实现: + +1. 进入管理面板的 `报警通知` 页 +2. 参考[这篇文档](/guide/notifications.html#特殊:任意周期流量报警),创建一个月流量报警 +3. 返回主页,在 `服务` 页中就可以看到月流量统计了,这里的统计数据不会因为服务器重启而重置 + +::: tip +此方式可以设置任何周期,包括且不限于每小时/每天/每周/每月/每年重置流量统计,非常灵活! +::: \ No newline at end of file