V2Fly.orgV2Fly.org
Quick Start
Config Reference
Config Reference (v5, WIP)
Tools
Developer Guide
New concise guide
  • 简体中文
  • English
GitHub
Quick Start
Config Reference
Config Reference (v5, WIP)
Tools
Developer Guide
New concise guide
  • 简体中文
  • English
GitHub
  • Config Reference

    • Configuration File Format
    • Environment variables
    • DNS Server
    • Routing
    • Policy
    • Inbounds
    • Outbounds
    • Transport
    • Remote control API
    • Stats
      • StatsObject
      • User Data
      • Global Data
    • Reverse Proxy
    • Multiple config
    • "Fake" DNS server
    • Browserforwarder
    • Observatory
  • Protocols

    • Blackhole
    • DNS
    • Dokodemo-door
    • Freedom
    • HTTP
    • Socks
    • VMess
    • Shadowsocks
    • Trojan
    • VLESS
    • Loopback
    • Hysteria2
  • Transport

    • TCP
    • mKCP
    • WebSocket
    • HTTP/2
    • QUIC
    • DomainSocket
    • gRPC
    • Hysteria2
  • Service

    • Stats
    • Policy
    • Browser Forwarder
    • Burst Observatory
    • Background Observatory
    • Tun
    • Subscription Manager

Stats

V2Ray provides statistical information about its operational status.

StatsObject

StatsObject corresponds to the stats entry in the configuration file.

{
}

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 to collect specific data.

The following statistics are currently available:

User Data

user>>>[email]>>>traffic>>>uplink

Uplink traffic for a specific user, measured in bytes.

user>>>[email]>>>traffic>>>downlink

Downlink traffic for a specific user, measured in bytes.

Tips

Statistics will not be enabled for users without a specified Email address.

Global Data

inbound>>>[tag]>>>traffic>>>uplink

Uplink traffic for a specific inbound proxy, measured in bytes.

inbound>>>[tag]>>>traffic>>>downlink

Downlink traffic for a specific inbound proxy, measured in bytes.

outbound>>>[tag]>>>traffic>>>uplink

(V2Ray 4.26.0+) Uplink traffic for a specific outbound proxy, measured in bytes.

outbound>>>[tag]>>>traffic>>>downlink

(V2Ray 4.26.0+) Downlink traffic for a specific outbound proxy, measured in bytes.

Edit this page on GitHub
Last Updated:
Contributors: Arınç ÜNAL, oweid
Prev
Remote control API
Next
Reverse Proxy