설치 및 사용
DBX for Cloud, DBXC는 두 가지 주요 컴포넌트로 구성됩니다.
- dbxc-agent: 클라우드 지표를 모니터링하는 백그라운드 서비스 (에이전트)
- dbxc-ctl: 에이전트를 제어하는 CLI 도구 (시작, 중지, 상태 확인, 로그 조회)
에이전트 설치
| OS | Architecture | Package |
|---|---|---|
| Linux | amd64, arm64 | .tar.gz |
| Windows 10, Windows Server 2016 이상 | amd64 | .zip |
- Linux
- Windows
설치 스크립트가 아키텍처(x86_64, aarch64)를 감지해 현재 경로의 dbxc 디렉토리에 설치합니다.
curl -fsSL https://repo.whatap.io/agent/dbx/cloud/install.sh | bash
cd dbxc
설치 후 dbxc 디렉토리에 config.yaml을 만들고 ./dbxc-ctl start로 실행합니다.
PowerShell에서 다음 명령을 실행합니다. 설치 경로는 C:\whatap\dbxc를 예로 들었습니다.
PowerShell
# 최신 패키지 다운로드
Invoke-WebRequest -Uri "https://repo.whatap.io/agent/dbx/cloud/dbxc.latest.windows-amd64.zip" -OutFile "$env:TEMP\dbxc.zip"
# 압축 해제 후 설치 경로로 복사
Expand-Archive -Path "$env:TEMP\dbxc.zip" -DestinationPath "$env:TEMP\dbxc" -Force
New-Item -ItemType Directory -Force -Path "C:\whatap\dbxc" | Out-Null
Copy-Item "$env:TEMP\dbxc\*\*.exe" "C:\whatap\dbxc\" -Force
cd C:\whatap\dbxc
.\dbxc-ctl.exe version
설치 경로에 dbxc-agent.exe와 dbxc-ctl.exe가 있으면 됩니다. 인터넷이 막힌 서버라면 다른 PC에서 zip 파일을 받아 옮긴 뒤 두 파일을 설치 경로에 복사합니다. 설치 경로에 config.yaml을 만들고 에이전트를 실행합니다.
PowerShell
.\dbxc-ctl.exe start -c config.yaml
.\dbxc-ctl.exe status
노트
-
0.5.13 이상 버전을 사용하세요. 이전 버전은 Windows에서
dbxc-ctl start가 실패합니다. -
메모장으로 config.yaml을 만들 때는 파일 형식을 모든 파일로 바꿔 저장합니다. 그대로 저장하면 config.yaml.txt가 됩니다.
-
AWS EC2가 아닌 서버에서는 에이전트를 실행할 계정의
%USERPROFILE%\.aws\credentials에 AWS 자격 증명을 설정합니다. -
Windows 서비스로 등록되지 않으므로 서버를 재부팅하면
dbxc-ctl start를 다시 실행해야 합니다. -
이후 명령어 예시의
dbxc-ctl은 Windows에서.\dbxc-ctl.exe로 바꿔 실행합니다.
설정 파일 구조
DBXC는 YAML 형식의 설정 파일을 통해 실행 구성을 정의합니다.