Hey,
I'm wondering if it is possible to convert a JSON array into a Datatable visualization and it on a dashboard. I'm building a monitoring dashboard for an application, and as one of the elements of the dashboard, I wanted to include current state of objects that the application operates on. Kinda like a peek inside the internal database of the service, to have a quick glance at what is happening right now.
To give more tangible example, this is a JSON array I'd like to display in my dashboard:
[
{
"ownerId": "16a2bceb-e15e-4947-9130-09ac34234c5f",
"updatedAt": "2018-04-19T00:49:43.595Z",
"addedAt": "2018-04-19T00:19:50.429Z",
"status": "IN_PROGRESS",
"externalReference": "tims_Execution1",
"id": "71c6a3b8-310e-4dd2-8e84-50ef23f2809b",
"duration": 510846058
},
{
"ownerId": "16a2bceb-e15e-4947-9130-09ac34234c5f",
"updatedAt": "2018-04-19T15:52:20.195Z",
"addedAt": "2018-04-19T15:22:26.185Z",
"status": "IN_PROGRESS",
"externalReference": "tims_Execution1",
"id": "6ca80cca-9329-4758-9c1f-42a9d2905db7",
"duration": 456690302
}
]
I would like to display on my dashboard a data table, that would contain the id, externalReference & duration information from the above JSON array, and order the results by duration.
I was thinking about two approaches to this, either getting the data directly from an HTTP endpoint, but it seems that Kibana is not able to gather data from external sources other than ElasticSearch, so I don't think I would be able to query my own endpoint?
Another approach, which I went with, is to push that object to my application logs, and in Kibana get it from logs. But in this case, I'm not sure how to convert this object to something that can be usable by the datatable.
It seems as if datatable is only able to display data as aggregations from ES search results, but not to parse a specific JSON object into table. Is there another approach here that might help me do what I'm trying to do?
Thanks in advance for your help.