[CSV Import] Mulitple values per line

Hello,

I’m trying to import a CSV file with the following format into Telegraf:

Blockquote
name,device_group,device_name
endpoint_group,groupA,deviceA
endpoint_group,groupA,deviceB
endpoint_group,groupB,deviceC

I already have in Grafana dashboard with information for each device (using variable), and my goal is to display the group the device belong to (the column device_group in the CSV).

Here is my input section for the CSV file:

Blockquote
[[inputs.file]]
interval = “3600s”
files = [“/etc/telegraf/endpoint_group.csv”]
data_format = “csv”
csv_measurement_column = “name”
csv_header_row_count = 1

But I’m unable to group the device_group and device_name together in InfluxDB.
Please could you help me by providing an example or by pointing me in the good direction?

Thank you :smiling_face: