# Extension 2.0 and process group detection

**URL:** <https://community.dynatrace.com/t/extension-2-0-and-process-group-detection/49007>\
**Category:** Extensions\
**Tags:** process-groups, extensions\
**Created:** [November 21, 2024, 2:13pm UTC](https://community.dynatrace.com/t/extension-2-0-and-process-group-detection/49007 "2024-11-21T14:13:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [November 21, 2024, 2:13pm UTC](https://community.dynatrace.com/t/extension-2-0-and-process-group-detection/49007/1 "2024-11-21T14:13:48Z")

</div>

Hello,

We are currently migrating our custom extension from 1.0 \> 2.0 and we have a bit a challenge with some of the extension. So it seems that in version 1.0 there has been some custom python module made by Dynatrace which has had some automatic model how to fetch the process group ID automatically.

I suppose that the functionality has come with these modules.

_from ruxit.api.exceptions import ConfigException_  
_from ruxit.api.base\_plugin import BasePlugin_  
_from ruxit.api.snapshot import command\_line\_regex_  
_from ruxit.api.snapshot import pgi\_name_  
_from ruxit.api.selectors import ExplicitPgiSelector_

And it has been used someway like on this example:

_pgi = self.find\_single\_process\_group(self.check\_technology(“Varnish Cache”))_  
_pgi\_id = pgi.group\_instance\_id_

Is there any similar premade functionality with extension 2.0 if we would like to attach the fetched metrics on some process itself?

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [November 22, 2024, 3:06pm UTC](https://community.dynatrace.com/t/extension-2-0-and-process-group-detection/49007/2 "2024-11-22T15:06:53Z")

</div>

Hello&nbsp;[@janne\_olkoniemi](https://community.dynatrace.com/user/23527)

You can refer to the attached Dynatrace documentation resources for detailed level of info:

- [Extensions — Dynatrace Docs](https://docs.dynatrace.com/docs/ingest-from/technology-support/dynatrace-extensions)
- [Develop your own Extensions — Dynatrace Docs](https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extensions/python-migration)
- [https://www.youtube.com/watch?v=g-lPIZx66BA](https://www.youtube.com/watch?v=g-lPIZx66BA)
- You have option to refer the current case with extension team for further assistance.

All the best,

BR,

Peter

---

<div class="post-metadata">

**Author:** ![arnauddc](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@arnauddc](https://community.dynatrace.com/u/arnauddc)\
**Post date:** [February 21, 2025, 2:21pm UTC](https://community.dynatrace.com/t/extension-2-0-and-process-group-detection/49007/3 "2025-02-21T14:21:50Z")

</div>

Hello Janne,

Did you find a solution to replace&nbsp;_find\_single\_process\_group_ in&nbsp;2.0 ?

Thank you already,

Arnaud
