Kafka

Consumer Lag - telegraf 설정

ZzangHo 2022. 1. 27. 16:07
728x90

telegraf 설치

[root@hostname telegraf]# mkdir /telegraf
[root@hostname telegraf]# wget https://dl.influxdata.com/telegraf/releases/telegraf-1.17.3_linux_amd64.tar.gz
--2021-06-07 16:32:22--  https://dl.influxdata.com/telegraf/releases/telegraf-1.17.3_linux_amd64.tar.gz
Resolving dl.influxdata.com (dl.influxdata.com)... 13.32.123.47, 13.32.123.51, 13.32.123.45, ...
Connecting to dl.influxdata.com (dl.influxdata.com)|13.32.123.47|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22550943 (22M) [application/x-tar]
Saving to: ‘telegraf-1.17.3_linux_amd64.tar.gz’
 
100%[===========================================================================>] 22,550,943  6.52MB/s   in 3.3s
 
2021-06-07 16:32:27 (6.52 MB/s) - ‘telegraf-1.17.3_linux_amd64.tar.gz’ saved [22550943/22550943]
 
[root@hostname telegraf]# tar xvf telegraf-1.17.3_linux_amd64.tar.gz

 

telegraf.conf 설정

[root@hostname telegraf]# vi telegraf-1.17.3/etc/telegraf/telegraf.conf
[[outputs.elasticsearch]]
    urls = [ "http://{ES_IP}:9200" ] # required.
    timeout = "5s"
    enable_sniffer = false
    health_check_interval = "10s"
    index_name = "burrow-%Y.%m.%d"
    manage_template = false
[[inputs.burrow]]
    servers = ["http://{BURROW_IP}:8000"]
    groups_exclude = ["console-*"]
    topics_exclude = ["__consumer_offsets"]

 

telegraf 실행

[root@hostname telegraf-1.17.3]# ./usr/bin/telegraf etc/telegraf/telegraf.conf

'Kafka' 카테고리의 다른 글

Kafka Consumer 멀티 쓰레드로 간단하게?  (0) 2022.01.28
Consumer Lag - Grafana 셋팅  (0) 2022.01.27
Consumer Lag - burrow 설치  (0) 2022.01.27
Kafka Install 버전 설치  (0) 2022.01.27
Spring Kafka로 토픽 구독  (0) 2022.01.26