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:
- Select a scope for the configuration and provide details about which tasks you want to monitor.
- In the Scheduled Tasks Configuration section, provide a date/time format matching your Windows system and select a data collection mode. The modes include running commands as the default user, impersonating a custom user, or setting up a manual task to collect data.
- In the Tasks to Monitor section, add each task you want to monitor by clicking the “Add item” button. For each task, provide its name as it appears in Task Scheduler and optionally set thresholds for timeouts and execution frequency to automatically raise problems if these thresholds are exceeded.
This solution should allow you to effectively monitor and add metadata to processes initiated by Windows Task Scheduler jobs.