How to use Infinity Plugin to display data from multiple arrays in a single API response?

Hi,

I’m working with an API response that returns data in a JSON format containing three arrays. Here’s an example of the JSON response:

{
“array1”: [
{“id”: 1, “name”: “Item 1”, “value”: 10},
{“id”: 2, “name”: “Item 2”, “value”: 20}
],
“array2”: [
{“id”: 1, “metric”: “Metric A”, “score”: 100},
{“id”: 2, “metric”: “Metric B”, “score”: 200}
],
“array3”: [
{“id”: 1, “status”: “active”, “count”: 5},
{“id”: 2, “status”: “inactive”, “count”: 3}
]
}

I want to use Grafana with the Infinity plugin to call this API endpoint only once and then display the data from array1, array2, and array3 in separate panels.

How can I achieve this using the Infinity plugin? Specifically, how do I configure Grafana to split the arrays and load them into multiple panels from a single API call?

Thanks in advance for any help!

you might be able to achieve this using Business Text or Business Chart plugin

what type of visualization do you want to show?

1 Like

Using Dashbord (Data sources | Grafana documentation) datasource wouldn’t help? You query api once in one of the panels, then you create other two panels from the Dashboard datasource (using the original panel). The problem I see is that you get rid of Infinity Plugin advanced JSON manipulation but maybe transformations would do for you?

2 Likes