Hi, I’m new here with InfluxDB, Telegraf and Grafana.
I’m a network engineer, trying to setup some KPI’s for monitoring Nokia Telecom nodes.
I have a XML file and I wanted to visualize that on Grafana, so the idea is to use Telegraf as a collector and Influx to store and Grafana to visualize the data.
Now I’m confused how to configure the input plugin on the Telegraf, their are plenty of pre-defined plugin, but which one I can use for getting the XML file. If needed I can write some Python script to change the file format to csv or something like that, but how to configure Telegraf?
I need some advice from you all people. Thanks!
Hi,
Take a look at the file input with the xpath parser. Also take a read through the parsing data docs
Does the XML file constantly grow, and does older data get replaced by newer data? I ask because you can use the Infinity Datasource in Grafana and point it directly at the XML file, and then use some parsing tools in Infinity to hone in on what you want to visualize and alert on.
(no disrespect to InfluxDB or Telegraf – I love both, but sometimes, other tools will get the job done).
Hi Grant,
Thanks for helping, I’m trying to export KPI from NOKIA device every 15min and wanted to populate it on Grafana, so the answer is XML will be replaced every 15min interval.
Thanks!
As @prabunithi72 you should be able to parse this file using the file input and xpath parser…