# How to install APM agent on Kibana server?

**URL:** https://discuss.elastic.co/t/how-to-install-apm-agent-on-kibana-server/254844
**Category:** APM
**Tags:** nodejs, ui
**Created:** [November 10, 2020, 3:28am UTC](https://discuss.elastic.co/t/how-to-install-apm-agent-on-kibana-server/254844 "2020-11-10T03:28:08Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)
#### Post date: [November 10, 2020, 3:28am UTC](https://discuss.elastic.co/t/how-to-install-apm-agent-on-kibana-server/254844/1 "2020-11-10T03:28:08Z")

</div>

Hi All,  
Any documents on installing APM agent on Kibana node?  
Followed the [documentation](https://www.elastic.co/guide/en/kibana/7.9/agent-configuration.html), but am confused.  
Which agent? Java?  
How to set up the properties?  
etc.

Any lead will be much appreciated.  
Thanks

---

<div class="post-metadata">

### Author: ![sqren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sqren/32/26110_2.png) [@sqren](https://discuss.elastic.co/u/sqren)
#### Post date: [November 10, 2020, 12:08pm UTC](https://discuss.elastic.co/t/how-to-install-apm-agent-on-kibana-server/254844/2 "2020-11-10T12:08:04Z")

</div>

Hi there,

If you are looking to instrument Kibana itself you can find the docs here: [https://www.elastic.co/guide/en/kibana/current/kibana-debugging.html#\_instrumenting\_with\_elastic\_apm](https://www.elastic.co/guide/en/kibana/current/kibana-debugging.html#_instrumenting_with_elastic_apm)

Let me know if that works.

---

<div class="post-metadata">

### Author: ![alanstorm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alanstorm/32/77134_2.png) [@alanstorm](https://discuss.elastic.co/u/alanstorm)
#### Post date: [November 12, 2020, 11:39pm UTC](https://discuss.elastic.co/t/how-to-install-apm-agent-on-kibana-server/254844/3 "2020-11-12T23:39:23Z")

</div>

Howdy @AClerk, great to meet you. It's not 100% clear what you're trying to do.

Do you want to use an APM agent to instrument your Kibana instance?

Or do you want to use an APM agent to get data from your running applications to display in your Kibana instance?

I can't tell from your question which one you're trying to do. If you could help us out by clarifying we'll be better able to answer your question.

---

<div class="post-metadata">

### Author: ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)
#### Post date: [November 16, 2020, 4:45am UTC](https://discuss.elastic.co/t/how-to-install-apm-agent-on-kibana-server/254844/4 "2020-11-16T04:45:35Z")

</div>

> [@alanstorm](#):
>
> Do you want to use an APM agent to instrument your Kibana instance?

@alanstorm  
This is what I am trying to do.  
Run APM agent on a Kibana instance and get the metrics.  
Cheers!

---

<div class="post-metadata">

### Author: ![sqren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sqren/32/26110_2.png) [@sqren](https://discuss.elastic.co/u/sqren)
#### Post date: [November 16, 2020, 6:59am UTC](https://discuss.elastic.co/t/how-to-install-apm-agent-on-kibana-server/254844/5 "2020-11-16T06:59:37Z")

</div>

Adding the following to config/kibana.yml should enable APM auto instrumentation:

```auto
elastic.apm.active: true
elastic.apm.serverUrl: '...'
elastic.apm.secretToken: '...'

```

---

<div class="post-metadata">

### Author: ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)
#### Post date: [November 16, 2020, 10:09pm UTC](https://discuss.elastic.co/t/how-to-install-apm-agent-on-kibana-server/254844/6 "2020-11-16T22:09:04Z")

</div>

Thanks @sqren  
Is this documented anywhere? If yes, please share a URL.  
I will test this and update with results.

---

<div class="post-metadata">

### Author: ![sqren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sqren/32/26110_2.png) [@sqren](https://discuss.elastic.co/u/sqren)
#### Post date: [November 17, 2020, 12:01am UTC](https://discuss.elastic.co/t/how-to-install-apm-agent-on-kibana-server/254844/7 "2020-11-17T00:01:43Z")

</div>

Currently the only documentation is [this](https://www.elastic.co/guide/en/kibana/master/kibana-debugging.html#_instrumenting_with_elastic_apm). It's unfortunately outdated so I'd suggest you subscribe to [this issue](https://github.com/elastic/kibana/issues/83045) if you are interested

---

<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: [December 7, 2020, 8:01pm UTC](https://discuss.elastic.co/t/how-to-install-apm-agent-on-kibana-server/254844/8 "2020-12-07T20:01:44Z")

</div>

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