{"repo":"compassvpn/xray-exporter","free":true,"listed":false,"github":"https://github.com/compassvpn/xray-exporter","clone":"git clone https://github.com/compassvpn/xray-exporter.git","description":"An exporter that collects Xray (and V2Ray) metrics over its Stats API and exports them to Prometheus. It also provides enhanced user activity metrics by parsing access logs.","language":"Go","stars":18,"topics":["grafana","metrics","prometheus","v2ray-core","xray-core","v2ray-exporter","xray-exporter"],"license":"MIT","category":"analytics","readme_excerpt":"Xray Exporter A Prometheus exporter for Xray and V2Ray. It reads runtime and traffic statistics from Xray's gRPC Stats API, and optionally parses the access log to report who is connecting, from where, and to which destinations. Rotation is detected by inode, so log parsing is unix only. Linux and macOS builds are published. What you can put on a dashboard From the access log: - Unique users and open connections over a rolling window - Top requested domains, with subdomains folded into their registrable domain - Top direct IP destinations, with localhost, private ranges, and the usual public DNS resolvers filtered out - Top ASNs with their network name, top countries, and top cities, resolved from GeoLite2 databases the exporter downloads and refreshes on its own - A world map of connections by country or city - How traffic splits across your outbounds, including whichever tag your config uses for blocked traffic From the Stats API: - Bytes up and down per inbound and per outbound - Bytes up and down per user, off by default because it is one series per user - Xray process health: uptime, goroutine count, heap usage, and GC pauses - Whether the last scrape worked and how long it took Our CompassVPN dashboard is published on grafana.com if you want a starting point. The metrics reference below has the queries if you would rather build your own. Install Binaries Linux (amd64, arm64, arm) and macOS (amd64, arm64) builds are on the releases page. Docker Multi-arch images (amd64, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/compassvpn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/compassvpn/xray-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}