I am moving away from simple json datasource to infinity datasource for alerting functionality.
I am trying to provision the same existing dashboards using infinity datasource plugin.
I have these type of data structure.
Multiple number of names (target) and datapoints (value, timestamp) associated with them.
[
{
"datapoints": [
[
9.691442,
1718613617621
],
[
9.306188,
1718614018788
],
[
9.361603,
1718614448729
]
],
"target": "AAA"
},
{
"datapoints": [
[
20.296214,
1718613848344
],
[
23.544085,
1718614207304
],
[
14.369337,
1718614430032
],
[
17.845236,
1718614820700
]
],
"target": "BBB"
},
{
"datapoints": [
[
147.347695,
1718613696786
],
[
170.428573,
1718614033027
],
[
95.308912,
1718614245887
],
[
147.848532,
1718614669018
]
],
"target": "CCC"
}
]
I am trying to somehow plot multiple lines on the same dashboard(for this example it is 3 but it can be arbitrary number). I can’t get this to work.
I converted the data structure on my API backend as this(In this example it should output 2 lines on the graph)
[
{
"timestamp": 1718613617621,
"value": 9.691442,
"name": "AAA"
},
{
"timestamp": 1718614018788,
"value": 9.306188,
"name": "AAA"
},
{
"timestamp": 1718614448729,
"value": 9.361603,
"name": "AAA"
},
{
"timestamp": 1718613848344,
"value": 20.296214,
"name": "BBB"
},
{
"timestamp": 1718614207304,
"value": 23.544085,
"name": "BBB"
},
{
"timestamp": 1718614430032,
"value": 14.369337,
"name": "BBB"
}
]
I used columns inside Parsing options & Result field
But I get just one line with all the values on the time series graph.
I can make arbitrary changes on my backend and feed the necessary data to infinity datasource dashboard but don’t know how to make multiple timeseries on the same dashboard to work.