30 Oct 2023 02:29 PM - last edited on 07 Nov 2023 08:57 AM by MaciejNeumann
I've been following this documentation to add metadata on the process level. However, what happens if the processes are triggered by task scheduler Windows jobs? They're neither IIS nor Windows services related so it's not documented. How is it possible to add metadata to those?
Solved! Go to Solution.
12 Nov 2023 04:01 PM
To add metadata to processes triggered by Windows Task Scheduler jobs in Dynatrace, you can use the OneAgent extension designed for Windows servers. This extension regularly interrogates the system for details about your configured scheduled tasks and sends this data to Dynatrace. It includes the current state of each task and the time elapsed since their last executions. The extension can automatically create problems for tasks that have failed to complete successfully, are taking longer than expected, or have missed their scheduled executions.
To get started, you need to add this extension to your Dynatrace environment and set up a monitoring configuration. In the configuration process, you'll need to:
This solution should allow you to effectively monitor and add metadata to processes initiated by Windows Task Scheduler jobs.
13 Nov 2023 08:40 AM
Thank you very much for your response, Radek. But how do I add the metadata to those processes? Where do I add the environment variable?
22 Dec 2023 09:43 AM
Hello Radek,
I have configured the extension and can see the scheduled task in Dynatrace. However, I added the metadata on the properties, and that doesn't apply correctly for some reason (in the properties, I would like to see the value of the environment variable). Even though I have added the argument with the DT_CUSTOM_PROP.