# Elasticsearch OneAgent extension configuration

**URL:** <https://community.dynatrace.com/t/elasticsearch-oneagent-extension-configuration/38319>\
**Category:** Open Q&A\
**Tags:** elasticsearch, extensions\
**Created:** [February 8, 2023, 7:28am UTC](https://community.dynatrace.com/t/elasticsearch-oneagent-extension-configuration/38319 "2023-02-08T07:28:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanduraghav](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@nanduraghav](https://community.dynatrace.com/u/nanduraghav)\
**Post date:** [February 8, 2023, 7:28am UTC](https://community.dynatrace.com/t/elasticsearch-oneagent-extension-configuration/38319/1 "2023-02-08T07:28:27Z")

</div>

Hi, My scenario is that we hosted 4 ES instances in one on-premise server having different URLs (port number). When I checked in Dynatrace we can’t monitor 4 URLs at a time (only1 at a time). Do any option is there to monitor all 4 different URLs to get monitor?. We have separate management zone available respective to the URLS. Tried the shared entity concept but didn’t work out.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 8, 2023, 8:21am UTC](https://community.dynatrace.com/t/elasticsearch-oneagent-extension-configuration/38319/2 "2023-02-08T08:21:05Z")

</div>

I’m pretty sure it should work. I assume each ES instance has its process. Therefore, each should have at least one service bound to a separate port.

---

<div class="post-metadata">

**Author:** ![nanduraghav](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@nanduraghav](https://community.dynatrace.com/u/nanduraghav)\
**Post date:** [February 8, 2023, 8:41am UTC](https://community.dynatrace.com/t/elasticsearch-oneagent-extension-configuration/38319/3 "2023-02-08T08:41:25Z")

</div>

But how we can add multiple URLs?

 ![nanduraghav_0-1675845677112.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/2/d2ae676e6d315d70d100c1c8ddcee33ac8f65de0.png)

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 8, 2023, 8:59am UTC](https://community.dynatrace.com/t/elasticsearch-oneagent-extension-configuration/38319/4 "2023-02-08T08:59:15Z")

</div>

Ah OK. It’s clear now. The question is related to the Elasticsearch OneAgent extension. Indeed this supports only 1 Elasticsearch instance per host.

---

<div class="post-metadata">

**Author:** ![nanduraghav](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@nanduraghav](https://community.dynatrace.com/u/nanduraghav)\
**Post date:** [February 8, 2023, 9:22am UTC](https://community.dynatrace.com/t/elasticsearch-oneagent-extension-configuration/38319/5 "2023-02-08T09:22:42Z")

</div>

Any other possibility that we can implement here to monitor multiple instance from one host?

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 9, 2023, 12:04pm UTC](https://community.dynatrace.com/t/elasticsearch-oneagent-extension-configuration/38319/6 "2023-02-09T12:04:25Z")

</div>

It is possible with a workaround. In the extension configuration, you should directly point to a Prometheus exporter endpoint instead of an Elasticsearch instance.

Connect all your Elasticsearch endpoints to the Prometheus and then use the extension.
