-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to collect metrics from kafka to influx #5361
Comments
Merging with #4426, it is a bug in the "influx" parser. If possible you could insert this item with one less backslash: - jvm_memory_used,area=heap,host=localhost,id=PS\\ Old\\ Gen,metric_type=gauge,statistic=value value=22579376 1549026687000000000
+ jvm_memory_used,area=heap,host=localhost,id=PS\ Old\ Gen,metric_type=gauge,statistic=value value=22579376 1549026687000000000 |
I have a regex like the following but it still does not pick it up [[processors.regex]] [[processors.regex.tags]] [[processors.regex.fields]] |
If this metric is being produced by Telegraf, I think it can be corrected more easily with the strings processor: [[processors.strings]]
[[processors.strings.replace]]
tag = "id"
old = '\\'
new = '' |
I'll try that but the metrics are being generated from a Spring boot application using Spring Micrometer. EDIT = That doesn't work. I'm trying the following regex |
I am pushing data to my kafka setup. I can see the data is being pushed successfully to kafka as when I call the kafka-console-consumer script, I can see the messages. Now my setup is like this:
Kafka -> Telegraf -> Influx
There seems to be a problem in making telegraf get the data. All of these tools are installed locally on my machine hence using localhost with default settings (no SSL etc).
Relevant telegraf.conf:
Global tags can be specified here in key="value" format.
[global_tags]
Configuration for telegraf agent
System info:
[Include Telegraf version, operating system name, and other relevant details]
Telegrad 1.9.3
Windows 10
Kafka 2.11-2.1.0
Influx 1.7.3
Steps to reproduce:
Start zookeeper + kafka
Start influx
Upon starting up telegraf with the above config, the following error appears:
E! [inputs.kafka_consumer]: Error in plugin: metric parse error: expected field at offset 54: "jvm_memory_used,area=heap,host=localhost,id=PS\\ Old\\ Gen,metric_type=gauge,statistic=value value=22579376 1549026687000000000\n"
Expected behavior:
Connect successfully
Actual behavior:
Exception being thrown
Additional info:
[Include gist of relevant config, logs, etc.]
The text was updated successfully, but these errors were encountered: