Integrate Grafana dashboards directly into the platform's entity pages to provide a seamless and integrated user experience. Currently, users need to click a link to view Grafana dashboards, which redirects them away from the platform. By embedding dashboards using an iframe, users can view the data directly on the platform page, eliminating the need for external navigation and enhancing usability.
Objective:
Enable the embedding of Grafana dashboards within the platform using the Grafana plugin for Backstage. This will allow dashboards to be displayed as an "overview" on the entity's page, making it easier for users to access relevant metrics and data without leaving the platform.
Modify the Entity Page to Embed Grafana Dashboards:
Update the EntityPage.tsx file to include the EntityOverviewDashboardViewer component. This component will render the Grafana dashboard directly on the entity's page using an iframe.
Warning: Ensure you understand and accept the security implications of enabling these settings, as embedding dashboards can expose Grafana to potential risks.
Test the Integration:
Verify that the Grafana dashboards are correctly embedded on the entity pages.
Ensure that the dashboards display the expected data and are fully functional within the iframe.
Test the user experience to confirm the seamless integration and improved accessibility of metrics directly within the platform.
By implementing these changes, the platform will provide a more cohesive and user-friendly experience, allowing for efficient monitoring and analysis of key metrics without leaving the application.
Integrate Grafana dashboards directly into the platform's entity pages to provide a seamless and integrated user experience. Currently, users need to click a link to view Grafana dashboards, which redirects them away from the platform. By embedding dashboards using an iframe, users can view the data directly on the platform page, eliminating the need for external navigation and enhancing usability.
Objective: Enable the embedding of Grafana dashboards within the platform using the Grafana plugin for Backstage. This will allow dashboards to be displayed as an "overview" on the entity's page, making it easier for users to access relevant metrics and data without leaving the platform.
Reference:
Tasks:
Modify the Entity Page to Embed Grafana Dashboards:
EntityPage.tsx
file to include theEntityOverviewDashboardViewer
component. This component will render the Grafana dashboard directly on the entity's page using an iframe.Example modification:
Configure Grafana Dashboard URLs:
Configure Grafana to Allow Embedding:
grafana.ini
configuration file to allow embedding by setting the following parameters:Test the Integration:
By implementing these changes, the platform will provide a more cohesive and user-friendly experience, allowing for efficient monitoring and analysis of key metrics without leaving the application.