[NOTE]
CB-Dragonfly is currently under development. (the latest version is 0.3 espresso)
So, we do not recommend using the current release in production.
Please note that the functionalities of CB-Dragonfly are not stable and secure yet.
If you have any difficulties in using CB-Dragonfly, please let us know.
(Open an issue or Join the cloud-barista Slack)
- `$ sudo git config --global color.ui "auto"` (Git 소스에 색 구분)
- `$ sudo git clone https://github.com/cloud-barista/cb-dragonfly.git` (Git 프로젝트 CLone)
- `username = {{GitUserEmail}}` (Clone시 자격여부 확인 : 자신의 Git Email 입력)
- `Password = {{GitUserPW}}` (Clone시 자격여부 확인 : 자신의 Git PW 입력)
Go mod 기반 의존성 라이브러리 로드
- `$ cd ~/cb-dragonfly` (clone한 프로젝트 파일로 들어가기)
- `$ go mod download` (.mod 파일에 등록된 라이브러리 다운로드 실행)
Go mod 기반 의존성 라이브러리 다운로드 확인
- `$ go mod verify` (다운로드 확인)
환경변수 설정
- `$ sudo vim conf/setup.env` (실행에 필요한 PATH를 처리할 파일 생성 (현 위치: ~/cb-dragonfly))
setup.env에 추가
export CBSTORE_ROOT=~/cb-dragonfly
export CBLOG_ROOT=~/cb-dragonfly
export CBMON_ROOT=~/cb-dragonfly
- `$ source setup.env` (수정한 setup.env 반영)
- `$ go run pkg/manager/main/main.go` (실행)
config.yaml 파일 설정 (conf/config.yaml 파일에 cb-dragonfly 호스트 IP ( kafka IP 및 collector IP ) 정보, 배포 환경, 모니터링 정책을 순차적으로 입력)
- #### Config for cb-dragonfly ####
# influxdb connection info
influxdb:
endpoint_url: http://cb-dragonfly-influxdb # endpoint for influxDB
internal_port: 8086
external_port: 28086
database: {{ database_name }}
user_name: {{ user_name }}
password: {{ password }}
kapacitor:
endpoint_url: http://cb-dragonfly-kapacitor:9092 # endpoint to kapacitor
kafka:
endpoint_url: cb-dragonfly-kafka
external_ip: {{ external_ip }}
deploy_type: {{ deploy_type }} # deploy environment "compose" => docker-compose or others , "helm" => helm chart on k8s
compose_external_port: 9092
helm_external_port: 32000
internal_port: 9092
# collect manager configuration info
collectManager:
collector_ip: {{ collector_ip }} # local access endpoint to cb-dragonfly API server
collector_port: 8094 # udp port
collector_group_count: 1 # default collector group count
# api server configuration info
apiServer:
port: 9090
# monitoring interval configuration info
monitoring:
agent_interval: 2 # agent interval (s)
collector_interval: 10 # aggregate interval (s)
max_host_count: 5 # maximum host count per collector
monitoring_policy: {{ monitoring_policy }} # "agentCount" => The number of agent, "csp" => csp group
grpcServer:
port: 9999
멀티 클라우드 모니터링 프레임워크(cb-dragonfly) Docker-Compose 실행
프로젝트 빌드 및 실행
- `$ cd ~/cb-dragonfly`
- `$ sudo make compose-up` (cb-dragonfly 프로젝트 빌드 및 실행)
멀티 클라우드 모니터링 프레임워크(cb-dragonfly) 정지
프로젝트 중지 및 삭제
- `$ cd ~/cb-dragonfly`
- `$ sudo make compose-rm` (cb-dragonfly 중지 및 삭제)