快速开始
本指南只覆盖当前仓库仍然有效的启动方式:cmd/* 二进制入口加 configs/* 配置文件。
环境要求
- Go 1.26.x
- Node.js 22+
- pnpm 10.22+
- Docker(可选)
- buf
安装与构建
git clone https://github.com/cuihairu/croupier.git
cd croupier
go mod download
make proto
make build
构建产物会输出到 bin/:
bin/
├── croupier-server
├── croupier-agent
├── analytics-worker
├── ingest
└── ...
运行服务
1. 准备本地配置
cp configs/server.yaml configs/server.local.yaml
cp configs/agent.yaml configs/agent.local.yaml
2. 启动 Server
./bin/croupier-server --config configs/server.local.yaml
默认端口:
- HTTP:
18780 - NNG Control:
19090
3. 启动 Agent
./bin/croupier-agent --config configs/agent.local.yaml
4. 启动 Dashboard(可选)
cd dashboard
pnpm install
pnpm dev
验证
curl http://localhost:18780/api/v1/monitoring/health
