board

telegraf 설치 - CentOS

Author
sook
Date
2020-02-25 13:29
Views
1474

CentOS 서버에 Telegraf 에이전트 설치하기.

Ubuntu 18.04서버에 telegraf설치는 Influxdata 리포지토리에서 다운로드 됩니다. 리포지토리가 추가되면 적절하게 apt 패키지 관리자를 사용하여 telegraf 패키지를 설치할 수 있습니다. 아래와 같이 서버에서 관리자 권한으로 InfluxData 저장소를 파일 /etc/yum.repos.d/influxdb.repo에 추가하십시오.

cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF

yum update실행 업데이트 및 Telegraf 설치

$ sudo yum update

telegraf 설치

$ sudo yum install telegraf

부팅시 telegraf 서비스를 시작하고 활성화합니다.

$ sudo systemctl enable --now telegraf

$ sudo systemctl is-enabled telegraf

활성화 되었습니다.

Total 0