XML Example #37
Replies: 6 comments 29 replies
-
Hi how are you? very good your git. I need your help. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have sample like in "XML with deep level of nodes", when I tried, it doesn't work. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have a XML-file in a format with some |
Beta Was this translation helpful? Give feedback.
-
Is there a way to use the XML type to query against DNS bind statistics channel? I keep getting a no data error when using the URL that is assigned to that channel. I understand that pointing it to the UI is not the same as using inline raw data |
Beta Was this translation helpful? Give feedback.
-
Are there any documentation for UQL for xml? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
XML Example
URL : https://gist.githubusercontent.com/yesoreyeram/655a362eed0f51be24e16d3f1127a31d/raw/aa58549a5cf9d06dae1204b5a09be5d651adc744/text.xml
As you can see in the below image, the above xml can be visualised in grafana table in few simple steps. First you need to specify url of the xml, then specify the root/rows value and then finally columns.
If your rows are directly under the root node, you can specify the rows as shown below. In my example I want to list all the CDs in the CATALOG. So my root node is
CATALOG.CD
. Then for columns, I can specify each column and its type as shown belowXML Example with time columns
With the same url above, we are going to parse the Year as time column.
XML Example with time column
URL : https://thingspeak.com/channels/38629/feed.xml
in the below example, I want to visualise thingspeak traffic sensor data. As per the above xml, my feed data is two level down to the root node. So my root/rows selector is
channel.feeds[0].feed
. So I am trying to list all the feed data.In the above example, you can see timestamp have very special selector
created-at[0]._
. because that node have a very specific property calledtype="dateTime"
XML with deep level of nodes
In the above example, user used
xml.meter[0].profile[0].sample
as the root nodeXML - Simulating Timeseries
In the below example we don't have any time column. With just string column and one or more number columns, we can format the data as timeseries and then visuzalise in grafana's timeseries panels like guage, bar chart, stats panel etc.
Beta Was this translation helpful? Give feedback.
All reactions