From Image Idea To Kibana Dashboard Using Ai
From image idea to Kibana dashboard using AI
This notebook is based on the article From image idea to Kibana dashboard using AI. With the following code, we can generate a Kibana dashboard from an image.
Note: This notebook was done to be executed in Google Colab.
Install dependencies
Defining the dashboard schema
Defining the dashboard schema
Loading the json templates
There are 3 templates for each visualization type:
- pie
- bar
- metric
The templates are in the following format:
- insBar.json
- insPie.json
- insMetric.json
You can find the templates in the /templates folder on the repository. Download the templates and upload them using the following code (Click on the upload button and load all the files together).
Defining the dashboard schema
Retrieve index mappings for the index that the dashboard is based on.
Loading image
You can load an image from your local machine and use it to generate a dashboard. In the /imgs folder on the repository, you can find images to use as examples.
Filling the template with the values generated by the LLM:
Generate the dashboard
Here is called the API /api/generate-dashboard. The templates with the values generated by the LLM are sent to the API.