hi.
First, I’m Korean so I can’t speak English well! Please understand me even if I’m rude…
i want to make telegraf input from my kafka broker! and save into influxdb. i don’t have error.
but There’s no measure I’ve named. please look at my telegraf config.
[agent]
interval = “10s”
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = “0s”
flush_interval = “10s”
flush_jitter = “0s”
precision = “s”
hostname = “”
omit_hostname = false
###############################################################################
OUTPUT PLUGINS
###############################################################################
[[outputs.influxdb]]
urls = [“http://127.0.0.1:8086”]
database = “telegraf”
skip_database_creation = true
retention_policy = “cy”
write_consistency = “any”
timeout = “5s”
content_encoding = “identity”
influx_uint_support = false
###############################################################################
INPUT PLUGINS
###############################################################################
[[inputs.kafka_consumer]]
brokers = [“192.168.0.200:9092”]
topics = [“abcc”]
max_message_len = 1000000
name_override = “mean1”
tag_keys = [“subject”]
data_format = “json”
data_type = “string”
this is my telegraf log!
cybang@ubuntu:/usr/bin$ sudo ./telegraf -config /etc/telegraf/telegraf.conf
2019-11-12T13:28:24Z I! Starting Telegraf 1.12.4
2019-11-12T13:28:24Z I! Loaded inputs: kernel processes swap cpu diskio system kafka_consumer disk mem
2019-11-12T13:28:24Z I! Loaded aggregators:
2019-11-12T13:28:24Z I! Loaded processors:
2019-11-12T13:28:24Z I! Loaded outputs: influxdb
2019-11-12T13:28:24Z I! Tags enabled: host=ubuntu
2019-11-12T13:28:24Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“ubuntu”, Flush Interval:10s
this is command and result form my influx
show measurements
name: measurements
name
cpu
disk
diskio
kafka_consumer
kernel
mem
processes
swap
system