Influxdb_v2.2 cisco_mdt panic: runtime error: index out of range [1] with length 0

Hi, I’m new but struggling to get a working example of a TIG stack on a cisco router with IOS-XE (a CSR1000v actually). I’ve followed the numerous examples on the web that seem to make all of this look very easy. And have slightly modified the configuration files from the example from cisco here to include local agent system metrics. My problem is that while the local agent metrics appear in influxdb the cisco metrics result in the following error for any query.

 panic: runtime error: index out of range [1] with length 0

The measurements appear in influx however just that there seems to be an issue with doing an query. The telegraf data appears to be ok to myself when I write it to a file however as I’m only just learning i could be completely wrong. I’d appreciate any possible advice.

Telegraf data written to a json file looks like this.
{“fields”:{“discontinuity_time”:“2022-06-11T04:13:56+00:00”,“in_broadcast_pkts”:0,“in_crc_errors”:0,“in_discards”:0,“in_discards_64”:0,“in_errors”:0,“in_errors_64”:0,“in_multicast_pkts”:0,“in_octets”:12418,“in_unicast_pkts”:155,“in_unknown_protos”:0,“in_unknown_protos_64”:0,“num_flaps”:0,“out_broadcast_pkts”:0,“out_discards”:0,“out_errors”:0,“out_multicast_pkts”:0,“out_octets”:44952,“out_octets_64”:44952,“out_unicast_pkts”:248,“rx_kbps”:1,“rx_pps”:1,“tx_kbps”:1,“tx_pps”:1},“name”:“Cisco-IOS-XE-interfaces-oper:interfaces/interface/statistics”,“tags”:{“host”:“35dfb115ca5a”,“name”:“GigabitEthernet1”,“path”:“Cisco-IOS-XE-interfaces-oper:interfaces/interface/statistics”,“source”:“Router”,“subscription”:“2”},“timestamp”:1654931452}

I’ll keep reading and try and find a reason why but given the system agent data is ok i’m thinking either it does not like the telegraf output? All the examples are the same and there is not real difference in telegraf and the cisco_mdt plugin…

Any help appreciated.

Seems the community is not really active. I’ve solved my issue myself.

Hello @tommiy,
I apologize for the delay feel free to tag me in the future!
Do you mind sharing your solution so others can benefit.