# Extension 2.0 using 2 endpoint

**URL:** <https://community.dynatrace.com/t/extension-2-0-using-2-endpoint/45658>\
**Category:** Extensions\
**Tags:** databases, sql, dynatrace-managed, oracle, extensions\
**Created:** [May 17, 2024, 9:28pm UTC](https://community.dynatrace.com/t/extension-2-0-using-2-endpoint/45658 "2024-05-17T21:28:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmkni](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rmkni](https://community.dynatrace.com/u/rmkni)\
**Post date:** [May 17, 2024, 9:28pm UTC](https://community.dynatrace.com/t/extension-2-0-using-2-endpoint/45658/1 "2024-05-17T21:28:41Z")

</div>

Hi,

I am creating an extension 2.0 using .yaml

And in it there are SQL queries

But i wanna execute them on different endpoints

Let’s say

Query 1 needs to be executed on endpoint 1

And query 2 to be executed on endpoint 2

I configured the endpoints in Dynatrace as shown below ,

Now how can I specify for each query where to be executed

 ![rmkni_0-1715981014189.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b2d35d8d03132d39c2b04a374162dd2cdc2aa92e.png)

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [May 19, 2024, 9:33am UTC](https://community.dynatrace.com/t/extension-2-0-using-2-endpoint/45658/2 "2024-05-19T09:33:59Z")

</div>

Hi&nbsp;[@rmkni](https://community.dynatrace.com/user/76014)

Just wonder why not to split into 2&nbsp;separated configurations?

Yos

---

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [May 21, 2024, 9:33am UTC](https://community.dynatrace.com/t/extension-2-0-using-2-endpoint/45658/3 "2024-05-21T09:33:44Z")

</div>

Hello [@rmkni](https://community.dynatrace.com/user/76014)&nbsp;,

You can package your queries per “feature sets”:

> **[About Extensions](https://docs.dynatrace.com/docs/ingest-from/extensions/concepts)**
>
> Learn how Dynatrace Extensions work, from the Extension Execution Controller and ActiveGate groups to performance profiles, packages, and data sources.

_Feature sets are categories into which you organize the data collected by the extension. Imagine an SNMP extension monitoring your network devices and collecting metrics related to NIC status, transport layer, and SNMP traps. This is reflected by metrics organization into related feature sets. Using a single extension, you can now customize your monitoring to limit a particular feature set to selected devices of your choice or identify ActiveGates with connectivity suited to devices capable of providing data specific to a feature set. It’s all centrally managed from a single place, using a single API call. All metrics that aren’t categorized into any feature set are considered to be default and are always reported._

Feature set 1 :&nbsp;  
query 1

query 2

Feature set 2 :

query 3

query 4

Afterward, you can configure different configuration endpoints :

1 configuration entpoint with a list of servers to execute feature Set 1

1 configuration entpoint with a list of servers to execute feature Set 2

An exemple with oracle extension :

 ![AurelienGravier_0-1716283955151.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/748d62e984ae1773bac6fcf5e7fae521f42b2a30.png)

Regards, Aurélien
