설치

  • 파일을 생성하세요.ebextensions/rootly.config. (이름이 ‘rootly’일 필요는 없습니다.)
  • 이 내용을 파일에 넣으세요 (사용 사례에 맞게 조정)
Shell
files:
"/opt/elasticbeanstalk/hooks/appdeploy/pre/01rootly.sh" :
    mode: "000775"
    owner: root
    group: users
    content: |
        #!/bin/bash

        rootly_api_key="$(/opt/elasticbeanstalk/bin/get-config container -k rootly_api_key)";
        environment="$(/opt/elasticbeanstalk/bin/get-config container -k environment)";
        service="$(/opt/elasticbeanstalk/bin/get-config container -k service)";
        labels="key=value,key2=value2"

        # install rootly cli
        curl -fsSL https://raw.githubusercontent.com/rootly-io/cli/main/install.sh | sh

        # log a pulse
        rootly pulse --api-key "${rootly_api_key}" --quiet --environments "${environment}" --services "${service}" --labels "${labels}" Deploy in progress...

지원

이 통합에 대해 도움이나 추가 정보가 필요한 경우support@rootly.com으로 문의하거나오른쪽 하단의 채팅 위젯을 사용하여 엔지니어와 연결하세요.