인프라/모니터링
telegraf 시작하기
곰돌이쿤
2022. 1. 4. 17:54
반응형
Telegraf 설정
Telegraf는 agent application으로서 burrow의 rest api데이터를 일정주기로 ES에 전달하는 역할을 합니다.
설치
centos 다운
# influxdb.key GPG Fingerprint: 05CE15085FC09D18E99EFB22684A14CF2582E0C5
cat <https://repos.influxdata.com/stable/\$basearch/main
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF
sudo yum install telegraf
위 두 명령어 입력하면 다운된다. os 별 다운로드는 하기 링크에 있다.
https://portal.influxdata.com/downloads/
시작하기
systemctl start telegraf <-- 시작하기
sudo systemctl status telegraf <-- 확인하기
설정확인 후 재시작
systemctl restart telegraf
telegraf.conf
[[inputs.burrow]]
servers = ["http://버로우:8000"]
topics_exclude = [ "__consumer_offsets" ]
groups_exclude = ["console-*"]
[[outputs.elasticsearch]]
urls = [ "http://엘라스틱서치:9200" ]
timeout = "5s"
enable_sniffer = false
health_check_interval = "10s"
index_name = "burrow-%Y.%m.%d"
manage_template = false
https://runebook.dev/ko/docs/influxdata/telegraf/v1.3/introduction/getting_started/index
반응형