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

OneAgent extension - ruxit.api.exceptions.ConfigException - process group not found

dennis_muller
Newcomer

I am writing my first extension and am running into the issue where the process group is not found, even though i am using a valid process group I still get this error when I run the simulator


sys.path after installing plugins: ['/usr/local/bin', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/usr/local/lib64/python3.6/site-packages', '/usr/local/lib/python3.6/site-packages', '/usr/lib64/python3.6/site-packages', '/usr/lib/python3.6/site-packages', '/home/t1-dmuller/scripts/examples/vertica_plugin']

Class <enum 'StateEnum'> was generated: module = generated.VerticaApp, class name = StateEnum

Enum values for generated.VerticaApp: ['ERROR', 'OK', 'WARNING', '__class__', '__doc__', '__members__', '__module__']

Class <class 'generated.VerticaApp.StateMetric'> was generated: module = generated.VerticaApp, class name = StateMetric

Activating plugin engine: <PluginEngine, meta_name:custom.python.vertica_app id:0x7fa2f7295198>

info: PluginInfo(name='custom.python.vertica_app', reported_name='custom.python.vertica_app', version='1.0.0', directory='/home/t1-dmuller/scripts/examples/vertica_plugin' package='vertica_app')

active plugins changed

event_set_configuration, plugin: <PluginEngine, meta_name:custom.python.vertica_app id:0x7fa2f7295198> config: {}

plugin <PluginEngine, meta_name:custom.python.vertica_app id:0x7fa2f7295198> threw exception Expected exactly 1 pgi to match predicate found: 0

new plugin status for engine ('custom.python.vertica_app', 1) PluginFullStatus(pluginName=custom.python.vertica_app, pluginVersion=1.0.0, state=ERROR_CONFIG, description=Expected exactly 1 pgi to match predicate found: 0, monitoredEntityId=0x1, stacktrace=Traceback (most recent call last):

File "/usr/local/lib/python3.6/site-packages/ruxit/plugin_state_machine.py", line 340, in _execute_next_task

self._query_plugin()

File "/usr/local/lib/python3.6/site-packages/ruxit/plugin_state_machine.py", line 672, in _query_plugin

self._plugin_run_data.plugin_instance._query_internal(**self._plugin_run_data.plugin_args)

File "/usr/local/lib/python3.6/site-packages/ruxit/api/base_plugin.py", line 455, in _query_internal

return self.query(**kwargs)

File "/home/t1-dmuller/scripts/examples/vertica_plugin/vertica_app.py", line 11, in query

pgi = self.find_single_process_group(pgi_name('vertica'))

File "/usr/local/lib/python3.6/site-packages/ruxit/api/base_plugin.py", line 492, in find_single_process_group

raise ConfigException("Expected exactly 1 pgi to match predicate found: %s" % len(ret))

ruxit.api.exceptions.ConfigException: Expected exactly 1 pgi to match predicate found: 0

)



I did review the other thread which looks similar but I am using a valid process group,

https://answers.dynatrace.com/questions/229065/problems-with-selffind-single-process-group-in-cus.ht...

1 REPLY 1

david_lopes
Dynatrace Helper
Dynatrace Helper

Are you 100% sure that the Process Group Name is simply "vertica" all lower case?
You can log "self.query_snapshot" to make sure that the Process Group Name is correct.