Skip to content

Commit d3190b0

Browse files
oweidxiaokangwang
authored andcommitted
Create EN-US version of stats.md
1 parent 9e4575b commit d3190b0

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

docs/en_US/config/stats.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
11
# Stats
22

3-
The documentation for this page is missing. Please submit a [pull request](https://github.com/v2fly/v2fly-github-io/pulls) or refer to the Chinese documentation.
3+
V2Ray provides statistical information about its operational status.
4+
5+
## StatsObject
6+
7+
`StatsObject` corresponds to the `stats` entry in the configuration file.
8+
9+
```json
10+
{
11+
}
12+
```
13+
14+
Currently, statistics have no parameters - internal statistics are enabled simply by the presence of the `StatsObject` entry. You also need to enable corresponding items in [Policy](policy.md) to collect specific data.
15+
16+
The following statistics are currently available:
17+
18+
## User Data
19+
20+
> `user>>>[email]>>>traffic>>>uplink`
21+
22+
Uplink traffic for a specific user, measured in bytes.
23+
24+
> `user>>>[email]>>>traffic>>>downlink`
25+
26+
Downlink traffic for a specific user, measured in bytes.
27+
28+
:::tip
29+
Statistics will not be enabled for users without a specified Email address.
30+
:::
31+
32+
## Global Data
33+
34+
> `inbound>>>[tag]>>>traffic>>>uplink`
35+
36+
Uplink traffic for a specific inbound proxy, measured in bytes.
37+
38+
> `inbound>>>[tag]>>>traffic>>>downlink`
39+
40+
Downlink traffic for a specific inbound proxy, measured in bytes.
41+
42+
> `outbound>>>[tag]>>>traffic>>>uplink`
43+
44+
(V2Ray 4.26.0+) Uplink traffic for a specific outbound proxy, measured in bytes.
45+
46+
> `outbound>>>[tag]>>>traffic>>>downlink`
47+
48+
(V2Ray 4.26.0+) Downlink traffic for a specific outbound proxy, measured in bytes.

0 commit comments

Comments
 (0)