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/healthUsing Binary
- Download the latest release:
# Linux amd64curl -sL -o - $(curl -s https://api.github.com/repos/kutovoys/xray-checker/releases/latest | grep "browser_download_url.*linux-amd64.tar.gz" | cut -d'"' -f4) | tar -xzchmod +x xray-checker
# Linux arm64curl -sL -o - $(curl -s https://api.github.com/repos/kutovoys/xray-checker/releases/latest | grep "browser_download_url.*linux-arm64.tar.gz" | cut -d'"' -f4) | tar -xzchmod +x xray-checker- Run with basic configuration:
./xray-checker --subscription-url=https://your-subscription-url/subVerify 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 --versionRun single check:
./xray-checker --subscription-url=https://your-sub-url --run-onceEnable authentication:
./xray-checker --subscription-url=https://your-sub-url \ --metrics-protected=true \ --metrics-username=user \ --metrics-password=passTroubleshooting
- Check service status:
curl http://localhost:2112/health- View logs:
docker logs xray-checker- Verify metrics:
curl http://localhost:2112/metricsNeed Help?
- Check the full documentation
- Open an issue on GitHub
- Join the community discussions