You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[agent]
interval = "10s"round_interval = truemetric_batch_size = 1000metric_buffer_limit = 10000collection_jitter = "0s"flush_interval = "10s"flush_jitter = "3s"precision = "s"debug = truequiet = falselogfile = ""hostname = ""omit_hostname = true# # Configuration for the Prometheus client to spawn
[[outputs.prometheus_client]]
# ## Address to listen onlisten = ":9126"collectors_exclude = ["gocollector", "process"]
path = "/metrics"
[[inputs.kafka_consumer]]
## kafka serversbrokers = [{{KAFKA_BROKER_ADDR_STR}}]## topic(s) to consumetopics = ["metric"]## Add topic as tag if topic_tag is not empty# topic_tag = ""## Optional Client idclient_id = "telegraf"offset = "oldest"max_message_len = 1000000data_format = "json"tag_keys = ["reason","host"
]
json_name_key = "name"json_string_fields = ["site"]
json_time_key = "timeStamp"json_time_format = "unix"json_timezone = "Local"
[[aggregators.valuecounter]]
period = "1s"drop_original = truefields = ["site"]
System info:
telegraf version: 1.10
evn: docker CentOS
Steps to reproduce:
set config drop_original = false. Send json string to kafka like this.
testStr := {"name":"test","reason":"test data","host":"127.0.0.1","site":"test","timeStamp":1553084442}
Telegraf works ok. you can see original
set config drop_original = true and restart telegraf. It works ok at first. You can see data in http://localhost:9126/metrics.
Expected behavior:
Actual behavior:
Telegraf stops consuming kafka message after consuming 1000 kafka messages
Additional info:
No error in log
The text was updated successfully, but these errors were encountered:
Relevant telegraf.conf:
System info:
telegraf version: 1.10
evn: docker CentOS
Steps to reproduce:
testStr :=
{"name":"test","reason":"test data","host":"127.0.0.1","site":"test","timeStamp":1553084442}
Telegraf works ok. you can see original
Expected behavior:
Actual behavior:
Telegraf stops consuming kafka message after consuming 1000 kafka messages
Additional info:
No error in log
The text was updated successfully, but these errors were encountered: