Quick Start
Get Xray Checker up and running in minutes with these simple steps.
Prerequisites
- Subscription URL for your proxies
- Docker (optional, for container deployment)
- Prometheus (optional, for metrics collection)
5-Minute Setup
Using Docker (Recommended)
- Pull the image:
docker pull kutovoys/xray-checker
- Run with basic configuration:
docker run -d \ -e SUBSCRIPTION_URL=https://your-subscription-url/sub \ -p 2112:2112 \ kutovoys/xray-checker
- Check the status:
curl http://localhost:2112/health
Using Binary
- Download the latest release:
curl -Lo xray-checker https://github.com/kutovoys/xray-checker/releases/latest/download/xray-checker_linux_amd64chmod +x xray-checker
- Run with basic configuration:
./xray-checker --subscription-url="https://your-subscription-url/sub"
Verify Installation
-
Open web interface:
- Navigate to
http://localhost:2112
- You should see the dashboard with proxy status
- Navigate to
-
Check metrics:
- Navigate to
http://localhost:2112/metrics
- You should see Prometheus metrics
- Navigate to
-
Verify proxy status:
- Click on any proxy link in the web interface
- Check the status endpoint response
Next Steps
- Configure Prometheus:
scrape_configs: - job_name: "xray-checker" static_configs: - targets: ["localhost:2112"]
-
Set up Uptime Kuma:
- Add new monitor
- Use proxy-specific endpoints
- Configure alerts
-
Customize configuration:
- Adjust check intervals
- Configure authentication
- Set up metric pushing
Common Commands
Check version:
./xray-checker --version
Run single check:
./xray-checker --subscription-url="https://your-sub-url" --run-once
Enable authentication:
./xray-checker --subscription-url="https://your-sub-url" \ --metrics-protected=true \ --metrics-username=user \ --metrics-password=pass
Troubleshooting
- Check service status:
curl http://localhost:2112/health
- View logs:
docker logs xray-checker
- Verify metrics:
curl http://localhost:2112/metrics
Need Help?
- Check the full documentation
- Open an issue on GitHub
- Join the community discussions