-
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
Linux system measurement is split into two lines #2444
Comments
This is not the only place where metrics can sometimes be split across multiple lines. This is valid Influx line-protocol and it doesn't make any difference to the db, so I'm going to close as "won't fix" the reason for the split is that the metrics are two different types, which can be represented & processed differently. The types are also exposed to the prometheus exporter endpoint. |
@sparrc this issue needs to be fixed somewhere. Since the metrics are split into two lines, InfluxDB forwards it on to Kapacitor as two lines and therefore its possible to write a TICKscript that will perpetually fail. I've opened an issue on Kapacitor for the time being. |
IMO it should be fixed in Kapacitor then. Metrics can be split for any number of reasons, including by the UDP client itself in order to split metrics with many fields into multiple packets. Telegraf doesn't have any guarantee that all fields for a single measurement will arrive on a single line-protocol line and the InfluxDB client doesn't guarantee that either. IMO this is a good design decision from InfluxDB's perspective and I think Kapacitor should do the same. |
Yeah I think I agree. |
Bug report
Hey. For some reason, the system measurement (load1,5,15, uptime, etc) is sent by telegraf as two distinct lines.
This essentially breaks stream processing with kapacitor of system measurement, as relevant field is missing 50% of the times.
This can be verified while looking into datapoints, as seen by kapacitor
Relevant telegraf.conf:
System info:
As far as I know, present in telegraf versions 1.0, 1.1 and 1.2. Tested on Ubuntu and Debian LTS versions (precise, trusty, xenial, jessie).
Steps to reproduce:
Telegraf
Use the included telegraf config file.
Kapacitor
Expected behavior:
Single line for system measurement.
Actual behavior:
Two distinct lines for system measurement
The text was updated successfully, but these errors were encountered: