인프라 모니터링 에이전트 를 시작하는 가장 빠른 방법은 설치 안내를 사용 하는 것입니다. EU에 거주하는 경우 EU 가이드 설치를 시도하십시오. 어느 쪽이든 New Relic 계정이 없으면 필요합니다. 당신은 영원히 무료로 하나를 만들 수 있습니다.
단계별 지침
안내 설치가 작동하지 않으면 에이전트를 수동으로 설치할 수 있습니다. 인프라를 설치하기 전에 다음을 확인하십시오.
Linux에 인프라를 설치하려면 다음 지침을 따르십시오.
구성 파일을 만들고 라이선스 키 를 추가합니다.
echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml
배포 버전 번호를 확인합니다.
New Relic의 GPG 키 활성화:
curl -s https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg | sudo apt-key add -
curl -s https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg | sudo apt-key add -
curl https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg -s | sudo gpg --import
중요
GPG 키가 예상대로 검증되지 않을 수 있는 zypper 패키지 관리자에 알려진 문제가 있습니다. Signature verification failed
과 같은 오류가 발생하는 경우 자세한 내용은 New Relic의 Explorers Hub 를 참조하세요.
인프라 모니터링 에이전트 리포지토리를 추가합니다.
데비안 8("제시")
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt jessie main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
데비안 9("스트레치")
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt stretch main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
데비안 10("버스터")
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt buster main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
데비안 11("불즈아이")
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt bullseye main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
우분투 16.04 LTS(제니얼 제루스)
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
우분투 18.04 LTS(바이오닉 비버)
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt bionic main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
우분투 20.04 LTS(포컬 포사)
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt focal main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
우분투 20.10(그루비 고릴라)
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt groovy main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
우분투 21.04(히르슈테 하마)
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt hirsute main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
우분투 22.04(Jammy Jellyfish)
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt jammy main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list
아마존 리눅스 2(x86)
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2/x86_64/newrelic-infra.repo
아마존 리눅스 2(arm64)
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/amazonlinux/2/aarch64/newrelic-infra.repo
CentOS, RHEL, Oracle Linux 7.x(x86)
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo
CentOS RHEL, Oracle Linux 7.x(arm64)
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/aarch64/newrelic-infra.repo
CentOS, RHEL, Oracle Linux 8.x(x86)
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/8/x86_64/newrelic-infra.repo
CentOS, RHEL, Oracle Linux 8.x(arm64)
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/8/aarch64/newrelic-infra.repo
SLES 11.4(x86)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/11.4/x86_64/newrelic-infra.repo
SLES 12.1(x86)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.1/x86_64/newrelic-infra.repo
SLES 12.1(ARM)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.1/aarch64/newrelic-infra.repo
SLES 12.2(x86)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.2/x86_64/newrelic-infra.repo
SLES 12.2(ARM)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.2/aarch64/newrelic-infra.repo
SLES 12.3(x86)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.3/x86_64/newrelic-infra.repo
SLES 12.3(ARM)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.3/aarch64/newrelic-infra.repo
SLES 12.4(x86)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.4/x86_64/newrelic-infra.repo
SLES 12.4(ARM)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.4/aarch64/newrelic-infra.repo
SLES 12.5(x86)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.5/x86_64/newrelic-infra.repo
SLES 12.5(팔)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/12.5/aarch64/newrelic-infra.repo
SLES 15.1(x86)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.1/x86_64/newrelic-infra.repo
SLES 15.1(ARM)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.1/aarch64/newrelic-infra.repo
SLES 15.2(x86)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.2/x86_64/newrelic-infra.repo
SLES 15.2(ARM)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.2/aarch64/newrelic-infra.repo
SLES 15.3(x86)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.3/x86_64/newrelic-infra.repo
SLES 15.3(ARM)
sudo curl -o /etc/zypp/repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/zypp/sles/15.3/aarch64/newrelic-infra.repo
저장소 새로 고침:
루트(기본값), 권한 있는 사용자 또는 권한 없는 사용자 모드에서 newrelic-infra
패키지를 설치합니다. 각 실행 모드에 대한 자세한 내용은 Linux 에이전트 실행 모드 를 참조하십시오.
데비안 및우분투 :
sudo apt-get install newrelic-infra -y
아마존 리눅스,CentOS,RHEL :
sudo yum install newrelic-infra -y
SLES :
sudo zypper -n install newrelic-infra
libcap 라이브러리를 설치하고 NRIA_MODE
환경 변수를 PRIVILEGED
로 설정합니다.
데비안 및우분투 :
sudo apt-get install libcap2-bin
sudo NRIA_MODE="PRIVILEGED" apt-get install newrelic-infra
아마존 리눅스,CentOS,RHEL :
sudo NRIA_MODE="PRIVILEGED" yum install newrelic-infra
SLES :
sudo zypper install libcap-progs
sudo NRIA_MODE="PRIVILEGED" zypper install newrelic-infra
libcap 라이브러리를 설치하고 NRIA_MODE
환경 변수를 UNPRIVILEGED
로 설정합니다.
데비안 및우분투 :
sudo apt-get install libcap2-bin
sudo NRIA_MODE="UNPRIVILEGED" apt-get install newrelic-infra
아마존 리눅스,CentOS,RHEL :
sudo NRIA_MODE="UNPRIVILEGED" yum install newrelic-infra
SLES :
sudo zypper install libcap-progs
sudo NRIA_MODE="UNPRIVILEGED" zypper install newrelic-infra
인프라 모니터링 에이전트가 설치 또는 업데이트 되면 에이전트 상태를 시작, 중지 또는 확인할 수 있습니다.
중요
버전 1.4.0 부터 인프라 모니터링 에이전트 패키지에는 실행 중인 에이전트의 문제를 해결하는 데 사용되는 추가 newrelic-infra-ctl
바이너리가 포함됩니다. 이 바이너리는 에이전트를 실행하는 데 필요하지 않지만 경로에 추가하는 것이 좋습니다.
구성 관리 도구를 사용하여 설치
구성 관리 도구를 사용하여 인프라 모니터링 에이전트를 설치하려면 다음 문서를 참조하십시오.
계측 호스트에 Docker 컨테이너 설치
인프라 모니터링을 위한 Docker 계측을 참조하십시오.
Azure 확장을 사용하여 설치
인프라 모니터링을 위한 Azure 확장을 참조하세요.
tarball 파일을 사용하여 설치
사용자 지정 설정 시나리오의 경우 지원 또는 수동 모드에서 tarball 파일 을 사용하여 인프라 모니터링 에이전트를 설치할 수 있습니다.
이는 기본 설치 설정을 환경에 맞게 조정하거나 저장소에 newrelic-infra
패키지가 없는 배포판에 인프라 모니터링 에이전트를 설치해야 할 때 특히 유용합니다.
중요
tarball 파일을 사용한 인프라 에이전트의 사용자 지정 설치는 공식적으로 지원되지 않습니다.
에이전트 업데이트
인프라 모니터링 에이전트를 업데이트하려면 표준 절차를 따르십시오.
sudo
을 사용하여 에이전트를 설치하거나 업데이트하는 경우 -E
인수를 사용하여 환경 변수를 우회하거나 sudo
NRIA_MODE
환경 변수를 지정합니다.
export NRIA_MODE="SET_MODE_HERE"
또는
sudo -E YOUR_PACKAGE_MANAGER_UPDATE_COMMAND
다음은 뭐지?
약간의 트래픽을 생성하고 몇 분 정도 기다린 다음 New Relic UI에서 호스트를 확인합니다 . 필요한 경우 데이터가 표시되지 않으면 문제 해결 절차를 따르십시오.
중요
서버의 호스트 이름은 localhost
일 수 없습니다. 해당 이름을 가진 서버에 대한 데이터는 보고되지 않습니다. 호스트 이름이 고유한 이름 을 사용하는지 확인하십시오.
유일한 필수 구성 옵션 은 설치 절차의 일부로 생성되는 license_key
설정입니다. 다음을 수행할 수도 있습니다.