-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a new dashboards page that makes use of embeddable dashboards by reference #224
Create a new dashboards page that makes use of embeddable dashboards by reference #224
Comments
I've been doing some research and I found this conversation in the Opensearch dashboard community where the use of this plugin is recommended: https://github.com/opensearch-project/OpenSearch-Dashboards/tree/main/src/plugins/expressions After doing some research on embeddables by reference, I tried to use the savedObjectId property to display a dashboard using embeddable dashboards by value, but it gave me formatting errors and I consulted my colleague @Desvelao, who proposed another solution that takes a dashboard specification and transforms it so that it can be used to render a dashboard. |
Working on dashboard automation.Currently when we create a dashboard we have its definition in the source code, since it does not benefit us to have it this way, I am working on using embeddable dashboards as a reference. When using an ID to display a dashboard, we need this dashboard to be created before referencing it. Proposed solutionI am working on a solution that allows us to automate the creation or import of dashboards when the application is initialized, and then display them in their respective modules. I am using the Kibana API to create or import dashboards at application initialization time; For example, when the health check is performed and the vulnerability index is loaded, it could also load the dashboards.
Things to define:
|
Definitions update:
|
When entering a dashboard the check is done using In this image in the console you can see how the dashboard with id after seeing that the dashboard has not been created, here you can see in the console how the dashboard with id |
Update on the functioning of the poc so far: Grabacion.de.pantalla.2024-08-07.a.la.s.6.07.59.p.m.mov |
When loading the visualisations of the whole dashboard I have experienced the following problems: When loading the visualizations using the endpoints to create dashboard and create visualizations:
I have seen with my partner Antonio that you have to make a request per visualization, so I decided to try with another endpoint that allows to load several saved objects:
But this one did not load visualizations inside a dashboard but it created the dashboard and the visualizations apart, so I tried with another endpoint:
and with this one I had problems to send in a POST a ndjson file. I have been working on a script that converts the ndjson file to binary to be sent in the POST but I am having errors when generating the blob to convert the file to binary. |
With the help of my colleague Antonio I have fixed the bug I had with the following endpoint to convert the ndjson to binary to send it in the POST. I've also been working on the consumption of the ndjson file from the backend and I'm still working on moving the logic to a global instance since it will be used in all the modules of the application. Unlike before, now a single request loads the whole dashboard, which is much more efficient.
|
I am working is being done on code reuse and ordering. Uploading components to a global scope to be used by other child components. I am bringing methods into common files to keep the logic encapsulated in certain files. |
Complete video of the operation
Grabacion.de.pantalla.2024-08-20.a.la.s.11.24.35.a.m.mov |
Description
The work on the new engine will generate events with a different schema. This will require to design a user-friendly interface to view the history of an alert, including all associated elements and their interactions, to facilitate better understanding and analysis.
We want to start with what we currently have implemented, but we need to introduce some changes to ensure the UI coherence.
The text was updated successfully, but these errors were encountered: