# How to embed existing dashboard in custom kibana plugin

**URL:** <https://discuss.elastic.co/t/how-to-embed-existing-dashboard-in-custom-kibana-plugin/296030>\
**Category:** Kibana\
**Created:** [February 2, 2022, 6:41am UTC](https://discuss.elastic.co/t/how-to-embed-existing-dashboard-in-custom-kibana-plugin/296030 "2022-02-02T06:41:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shreeya\_Rajguru](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shreeya_rajguru/32/98781_2.png) [@Shreeya\_Rajguru](https://discuss.elastic.co/u/Shreeya_Rajguru)\
**Post date:** [February 2, 2022, 6:41am UTC](https://discuss.elastic.co/t/how-to-embed-existing-dashboard-in-custom-kibana-plugin/296030/1 "2022-02-02T06:41:48Z")

</div>

Hi,

Is there a way to embed the existing kibana dashboards in custom plugin?  
I have referred the dashboard embeddable example plugin code - [Embeddables plugin | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/embeddable-plugin.html)  
but this doesn't seem to embed an existing dashboard.  
My requirement is to get a list of existing dashboards and embed the selected one in my plugin.  
Let me know if this is possible also please share documentation link for dashboard embeddable example plugin code if any.

Thanks,  
Shreeya

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [February 2, 2022, 11:34am UTC](https://discuss.elastic.co/t/how-to-embed-existing-dashboard-in-custom-kibana-plugin/296030/2 "2022-02-02T11:34:21Z")

</div>

You can embed a dashboard as an iframe. From an existing Dashboard go to Share \> Embed code and that will give you iframe code.

---

<div class="post-metadata">

**Author:** ![Shreeya\_Rajguru](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shreeya_rajguru/32/98781_2.png) [@Shreeya\_Rajguru](https://discuss.elastic.co/u/Shreeya_Rajguru)\
**Post date:** [February 2, 2022, 1:19pm UTC](https://discuss.elastic.co/t/how-to-embed-existing-dashboard-in-custom-kibana-plugin/296030/3 "2022-02-02T13:19:25Z")

</div>

Yes but apart from that is there any other way?

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [February 2, 2022, 3:02pm UTC](https://discuss.elastic.co/t/how-to-embed-existing-dashboard-in-custom-kibana-plugin/296030/4 "2022-02-02T15:02:28Z")

</div>

No, I am afraid not

---

<div class="post-metadata">

**Author:** ![Shreeya\_Rajguru](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shreeya_rajguru/32/98781_2.png) [@Shreeya\_Rajguru](https://discuss.elastic.co/u/Shreeya_Rajguru)\
**Post date:** [February 3, 2022, 5:29am UTC](https://discuss.elastic.co/t/how-to-embed-existing-dashboard-in-custom-kibana-plugin/296030/5 "2022-02-03T05:29:02Z")

</div>

Oh, Thank you @majagrubic, I thought just like embedding visualisations there might be a way to embed dashboards.  
I have some more doubts as follows :

- Is it possible to embed an existing plugin in my plugin?
- Is it possible to embed an existing visualisation in my plugin and customise it as per requirement?

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [February 3, 2022, 8:50am UTC](https://discuss.elastic.co/t/how-to-embed-existing-dashboard-in-custom-kibana-plugin/296030/6 "2022-02-03T08:50:28Z")

</div>

Kibana has a concept of embeddables that can be used in other plugins, yes. Please read our [documentation](https://www.elastic.co/guide/en/kibana/master/embeddable-plugin.html) on this and come back if you still have questions.

---

<div class="post-metadata">

**Author:** ![Shreeya\_Rajguru](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shreeya_rajguru/32/98781_2.png) [@Shreeya\_Rajguru](https://discuss.elastic.co/u/Shreeya_Rajguru)\
**Post date:** [February 9, 2022, 6:34am UTC](https://discuss.elastic.co/t/how-to-embed-existing-dashboard-in-custom-kibana-plugin/296030/7 "2022-02-09T06:34:07Z")

</div>

Thanks @majagrubic  
I have been reading the code mentioned in the documentation, but it seems to be baffling. Is there an example custom plugin which has used the Embeddable plugins code as reference?

Also, for embedding visualisations, I have gone through this webinar - [Developing Kibana Visualizations | Elastic Videos](https://www.elastic.co/webinars/creating-custom-kibana-visualizations?ultron=creating-custom-kibana-visualizations-webinar&blade=invite&hulk=email)

The code seems to be for previous versions and does not work on the kibana v7.x.x  
In the webinar its suggested to refer [Embedding Visualizations | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/development-embedding-visualizations.html) which is now deleted.  
Let me know if there is a documentation for embedding visualisations in kibana plugins with v7 and above

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 9, 2022, 6:34am UTC](https://discuss.elastic.co/t/how-to-embed-existing-dashboard-in-custom-kibana-plugin/296030/8 "2022-03-09T06:34:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
