Hi team,
I am relatively new to Grafana and was finding issues while trying to plot the following API response as a “Time Series” chart.
Following is the API response:
{
"result": {
"data": {
"Category1": [
{
"eventTime": "2024-08-28T21:25:27.503454Z",
"value": 1
},
{
"eventTime": "2024-08-29T22:25:27.503454Z",
"value": 2
}
],
"Category2": [
{
"eventTime": "2024-08-30T23:25:27.503454Z",
"value": 3
},
{
"eventTime": "2024-08-30T23:35:27.503454Z",
"value": 4
}
]
},
"limits": {
"lower": 10,
"upper": 20
}
}
}
I need to plot multiple series lines for category1 and category2. Also, I need to plot the limit lines as horizontal lines in the same plot. I was able to do this using Apache ECharts but I am unable to directly use the “Time Series” option of Grafana. Can someone please help how to parse the above API response using UQL or JSONata?