# Can Kibana App be instrumented with APM?

**URL:** https://discuss.elastic.co/t/can-kibana-app-be-instrumented-with-apm/170575
**Category:** Kibana
**Created:** [March 2, 2019, 12:39am UTC](https://discuss.elastic.co/t/can-kibana-app-be-instrumented-with-apm/170575 "2019-03-02T00:39:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![danielyahn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielyahn/32/41575_2.png) [@danielyahn](https://discuss.elastic.co/u/danielyahn)
#### Post date: [March 2, 2019, 12:39am UTC](https://discuss.elastic.co/t/can-kibana-app-be-instrumented-with-apm/170575/1 "2019-03-02T00:39:01Z")

</div>

Kibana is a nodejs app? Can Kibana App be instrumented with APM? Is it compiled with nodejs agent?

---

<div class="post-metadata">

### Author: ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)
#### Post date: [March 5, 2019, 2:36am UTC](https://discuss.elastic.co/t/can-kibana-app-be-instrumented-with-apm/170575/2 "2019-03-05T02:36:25Z")

</div>

Absolutely. We intend to build this into Kibana at some point. But up until this point I have only hacked it in on a branch for testing purposes. You will need to require APM in serve.js before we register any routes and additionally in the browser.

---

<div class="post-metadata">

### Author: ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)
#### Post date: [March 5, 2019, 2:47am UTC](https://discuss.elastic.co/t/can-kibana-app-be-instrumented-with-apm/170575/3 "2019-03-05T02:47:30Z")

</div>

Let me know if you would like a more detailed example and patch file. I don't think I still have that branch laying around, but I could put it together again.

---

<div class="post-metadata">

### Author: ![danielyahn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielyahn/32/41575_2.png) [@danielyahn](https://discuss.elastic.co/u/danielyahn)
#### Post date: [March 5, 2019, 4:17pm UTC](https://discuss.elastic.co/t/can-kibana-app-be-instrumented-with-apm/170575/4 "2019-03-05T16:17:54Z")

</div>

How did the testing go? Were you able to answer questions like, from which kibana tab / who / when queries are submitted to Elastic?

To give you more background, I'm trying to gather insights on queries submitted from Kibana. I successfully created a query audit dashboard by using Elasticsearch's security audit log ([https://medium.com/@danielyahn/elasticsearch-query-audit-dashboard-e37fe050b456](https://medium.com/@danielyahn/elasticsearch-query-audit-dashboard-e37fe050b456)) . But it's missing a crucial piece, which is query performance.

---

<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: [April 2, 2019, 4:23pm UTC](https://discuss.elastic.co/t/can-kibana-app-be-instrumented-with-apm/170575/5 "2019-04-02T16:23:02Z")

</div>

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