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

Plugins: Obtain a Process Snapshot from a Host

STiAT
Helper

Since naming in the dynatrace UI seems not consistent with the actual process instance names reported in Plugins, is there a way to get a proper process snapshot to copy into simulator_plugin.json from a certain host to make proper testing of the plugin activation possible?

5 REPLIES 5

Sorry, this does not help, it does not output a json for the simulator, not even the required information to build a json which could be used (executabe properties are missing).

Mike_L
Dynatrace Pro
Dynatrace Pro

Go to C:\ProgramData\dynatrace\oneagent\log\plugin\pluginDevLoggerPluginEngineDefault.log or the equivalent log directory on Linux and search for _update_latest_snapshot

You'll find lines that look like this (the process snapshot):

2021-02-12 16:15:21,762 DEBUG 29988(MainThread) - [_update_latest_snapshot] Latest process snapshot: ProcessSnapshot(host_id=1850212188241764429, entries=[ProcessSnapshotEntry(group_id=6772456763978972123, node_id=0, group_instance_id=9498283671383834280, process_type=11, group_name='MicrosoftSearchInBing.exe', processes=[ProcessInfo(pid=6264, process_name='MicrosoftSearchInBing.exe', properties={'ExePath': 'C:\\Program Files (x86)\\Microsoft\\Microsoft Search in Bing\\MicrosoftSearchInBing.exe', 'ParentPid': '944', 'WorkDir': 'C:\\WINDOWS\\system32\\'})], properties={'Technologies': 'DotNet,DOTNET,CLR'}), ProcessSnapshotEn [and so on, and so on]

You might have to deploy a custom extension first before this log entry starts being written, but it depends on your OneAgent version.

Mike

Thanks, I found that, but that's quite some work to get the proper processes out there and form into a json as a whole to see what works and what does not. REally no easier way to get a simulator snapshot?

I'm sorry but this is currently the best way. We're working on a new extension framework (as was announced during the Perform conference last week), which will iron out some of the tedious bits of the existing framework.