# EF2: Common config in a monitoring configuration for python extensions?

**URL:** <https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576>\
**Category:** Extensions\
**Tags:** python, extensions\
**Created:** [October 27, 2024, 8:17pm UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576 "2024-10-27T20:17:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 27, 2024, 8:17pm UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576/1 "2024-10-27T20:17:34Z")

</div>

In EF2 python extensions, most of the configuration is assumed to be in each endpoint, for each monitoring configuration.

In certain cases, there might be entries that apply to all endpoints, so defining them for each endpoint is not desired.

What are the best practices of defining entries that apply to the monitoring configuration, and not for each endpoint. And how do they appear in the UI?

---

<div class="post-metadata">

**Author:** ![MostafaHussein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mostafahussein/32/2785_2.png) [@MostafaHussein](https://community.dynatrace.com/u/MostafaHussein)\
**Post date:** [October 28, 2024, 11:35am UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576/2 "2024-10-28T11:35:18Z")

</div>

It will be great idea if listed under product ideas as for now there’s nothing in UI is dedicated for global extension configuration. but we can do it in the code level itself (not the best practice because every change in configuration we should update the extension version)

BR,  
Mostafa Hussein.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 28, 2024, 11:43am UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576/3 "2024-10-28T11:43:30Z")

</div>

[@MostafaHussein](https://community.dynatrace.com/user/66935),

I believe some things might be in place, as the “Enrichment attributes” have recently appeared.

Before Product Idea, I was just trying to confirm if so? [@Mike\_L](https://community.dynatrace.com/user/11520) ?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [October 28, 2024, 6:14pm UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576/4 "2024-10-28T18:14:47Z")

</div>

It is indeed already possible. Most of our extensions have a setting outside of the endpoints, debug logging. It’s up to the activation schema to place the setting, and then you can access it in the Python code. Keep in mind that it is not “global”, but per monitoring configuration.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 28, 2024, 8:13pm UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576/5 "2024-10-28T20:13:29Z")

</div>

[@Mike\_L](https://community.dynatrace.com/user/11520),

Thanks for your explanation. From it, I assume the setting defined in the activation schema, will not appear in the UI?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [October 28, 2024, 8:40pm UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576/6 "2024-10-28T20:40:22Z")

</div>

It would show up in the monitoring configuration UI, just outside of the endpoints array.

---

<div class="post-metadata">

**Author:** ![MostafaHussein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mostafahussein/32/2785_2.png) [@MostafaHussein](https://community.dynatrace.com/u/MostafaHussein)\
**Post date:** [October 28, 2024, 10:22pm UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576/7 "2024-10-28T22:22:28Z")

</div>

I think the documentation is missing this info. as the mentioned configuration sample i can’t see any info referring to `configuration level parameters` just what mentioned is the endpoint

 ![MostafaHussein_0-1730153328434.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/1/912e9f594dc9bb0272fc15908b9c723975f4640b.png)

also appreciate your support and advice if you provided us with the proper activation.json sample.

Thanks,  
Mostafa Hussein.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [October 29, 2024, 6:06am UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576/8 "2024-10-29T06:06:03Z")

</div>

You can download the IBM MQ extension from the hub for an example of how to write the activation schema. It has the debug logging outside of the endpoints.

---

<div class="post-metadata">

**Author:** ![MostafaHussein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mostafahussein/32/2785_2.png) [@MostafaHussein](https://community.dynatrace.com/u/MostafaHussein)\
**Post date:** [November 1, 2024, 12:24pm UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576/9 "2024-11-01T12:24:34Z")

</div>

Hello&nbsp;[@Mike\_L](https://community.dynatrace.com/user/11520)&nbsp;,

i don’t know how to download it, but I’ve added it to my environment and tried to find it in both sub-directories of

C:\ProgramData\dynatrace\remotepluginmodule\

C:\Program Files\dynatrace\remotepluginmodule\

appreciate your advice.

Thanks,  
Mostafa Hussein.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [November 1, 2024, 12:41pm UTC](https://community.dynatrace.com/t/ef2-common-config-in-a-monitoring-configuration-for-python-extensions/48576/10 "2024-11-01T12:41:32Z")

</div>

You can download any extension from the hub. For example: [https://www.dynatrace.com/hub/detail/ibm-mq-local/#release-notes](https://www.dynatrace.com/hub/detail/ibm-mq-local/#release-notes)
