Skip to content
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

Unset measurement name with csv parser #5530

Closed
danielnelson opened this issue Mar 5, 2019 · 0 comments
Closed

Unset measurement name with csv parser #5530

danielnelson opened this issue Mar 5, 2019 · 0 comments
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@danielnelson
Copy link
Contributor

Relevant telegraf.conf:

[[inputs.file]]
  files =["test.csv"]
  data_format = "csv"
  csv_header_row_count =1
  csv_delimiter = "|"
  csv_trim_space = true
  csv_skip_columns =3

test.csv:

         Timestamp | Total Queued || Queued in P0 | Queued in P1 | Dropped |     All | Process | Modload |    File |     Net |     DNS |   Proxy | Blocked |   Other |
  131922145722147338 |            0 ||            0 |            0 |       0 |       3 |       0 |       0 |       0 |       0 |       2 |       0 |       0 |       1 |
  131922145872546833 |            0 ||            0 |            0 |       0 |       4 |       0 |       0 |       0 |       0 |       2 |       0 |       0 |       2 |

System info:

Telegraf 1.10

Steps to reproduce:

  1. Use configuration above

Expected behavior:

foo All=4i,Process=0i,Modload=0i,Net=0i,DNS=2i,Blocked=0i,Dropped=0i,File=0i,Other=2i,Proxy=0i,Queued\ in\ P1=0i
foo DNS=2i,Proxy=0i,Blocked=0i,Other=1i,Queued\ in\ P1=0i,All=3i,Process=0i,Net=0i,Dropped=0i,Modload=0i,File=0i

Actual behavior:

2019-03-05T00:55:24Z E! [serializers.influx] could not serialize metric: invalid name; discarding metric

In addition to this error, the skip columns does not seem to be working properly. When adding name_override = "xyzzy" to the config the line is output but the Queued in P0 is not skipped:

xyzzy Queued\ in\ P0=0i,All=4i,File=0i,Blocked=0i,DNS=2i,Other=2i,Queued\ in\ P1=0i,Dropped=0i,Net=0i,Proxy=0i,Process=0i,Modload=0i 1551747938000000000
xyzzy All=3i,Modload=0i,Net=0i,Queued\ in\ P1=0i,DNS=2i,Dropped=0i,Proxy=0i,Blocked=0i,Other=1i,Queued\ in\ P0=0i,Process=0i,File=0i 1551747938000000000

Additional info:

https://community.influxdata.com/t/telegraf-inputs-file-timestamp-unix/8175/5

@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Mar 5, 2019
@danielnelson danielnelson added this to the 1.10.1 milestone Mar 5, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant