Ubuntu 환경에 데이터세이커 설정파일 구성하기

apt repository 등록하기

# Add DataSaker's official GPG Key:
sudo apt update
sudo apt install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://dsk-agent-s3.s3.ap-northeast-2.amazonaws.com/dsk-agent-s3/public/public.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/datasaker.gpg
sudo chmod a+r /etc/apt/keyrings/datasaker.gpg

# Add the repository to Apt sources:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/datasaker.gpg] https://nexus.exem-oss.org/repository/debian-repos/ ubuntu main" | sudo tee /etc/apt/sources.list.d/datasaker.list > /dev/null
sudo apt update

global-config.yml 구성하기

먼저, DataSaker 설정파일을 구성하기 위한 환경을 구성합니다.

sudo mkdir -p /etc/datasaker

sudo touch /etc/datasaker/global-config.yml

이후 Datasaker에서 발급받은 API Key를 사용하여 설정 파일을 구성합니다.

echo 'global:
  api_key: "<YOUR_API_KEY>"
  gates:
    metric_datagate:
      url: gate.kr.datasaker.io:31302
      remote_timeout: 5s
    manifest_datagate:
      url: gate.kr.datasaker.io:31301
      remote_timeout: 5s
    trace_datagate:
      url: gate.kr.datasaker.io:31300
      remote_timeout: 5s
    plan_datagate:
      url: gate.kr.datasaker.io:31303
      remote_timeout: 5s
    loggate:
      url: gate.kr.datasaker.io:31304
      remote_timeout: 5s
  agent_manager:
    url: api.kr.datasaker.io
    base_url: /dsk-agentmanager-api/agent
    send_interval: 1m' | sudo tee /etc/datasaker/global-config.yml