cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extension 2.0 and process group detection

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?

1 REPLY 1

Peter_Youssef
Champion

Hello @janne_olkoniemi 

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

All the best,

BR, 

Peter

The #Dynatrace Extensions SDK for Python is a new Python library and toolbox for building Python extensions for Extensions Framework 2.0. It provides a ready-to-use template and a set of tools to build, test, package, and ship your extension. Watch this hands-on tutorial where David Lopes ...

Featured Posts