21 Nov 2024 02:13 PM - last edited on 25 Nov 2024 08:21 AM by MaciejNeumann
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?
22 Nov 2024 03:06 PM
Hello @janne_olkoniemi
You can refer to the attached Dynatrace documentation resources for detailed level of info:
All the best,
BR,
Peter