- Newest
- Most votes
- Most comments
Based on the information available, the run_monitoring_job method does not appear to be available in the DefaultModelMonitor class in SageMaker SDK version 2.254.1.
For running on-demand monitoring jobs in SageMaker Model Monitor, the recommended approach is to use the CreateMonitoringSchedule API. You can create a one-time monitoring schedule that executes immediately rather than creating a recurring schedule.
To run an on-demand data quality monitoring job, you would:
- Create a monitoring schedule with a one-time execution using the CreateMonitoringSchedule API
- View the status of your monitoring job in the SageMaker Model Dashboard under the "Monitor schedule" section
- Check the "Status schedule" column to track the progress (which can be "Failed," "Pending," "Stopped," or "Scheduled")
You can also monitor the job through the SageMaker console by navigating to the Governance section and selecting Model Dashboard, then finding your model and checking the monitoring schedule section.
The approach you suggested (creating a monitoring schedule, waiting for the first execution, and then stopping/deleting it) would work as a workaround if you need to run a one-time monitoring job.
For more detailed monitoring of your jobs, you can use the monitoring capabilities in SageMaker, which include tracking job status, resource utilization, logs, and metrics.
Sources
View scheduled monitors - Amazon SageMaker AI
CreateMonitoringSchedule - Amazon SageMaker
Monitoring jobs and job runs - Amazon MaxDome
answered 8 months ago
Hello,
Please allow me to inform you that the run_monitoring_job method does not exist in the DefaultModelMonitor class in SageMaker SDK version 2.254.1. This is by design—SageMaker Model Monitor uses monitoring schedules rather than direct job execution methods.
To run an on-demand data quality monitoring job, use the create_monitoring_schedule() method with CronExpressionGenerator.now() as the schedule expression. This triggers immediate, one-time execution without creating a recurring schedule.
CreateMonitoringSchedule - https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateMonitoringSchedule.html
Schedule monitoring jobs - https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-scheduling.html
Model Monitor - https://sagemaker.readthedocs.io/en/stable/api/inference/model_monitor.html
Model Monitor FAQs - https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-faqs.html
Additionally, I kindly request you to please stay updated through these blogs -
What's New with AWS - https://aws.amazon.com/new/
AWS News Blog - https://aws.amazon.com/blogs/aws/
If you have any questions or would like more details about the feature or roadmap, please reach out to AWS Support, and we would be happy to assist you further.
—References—
[1] Creating support cases and case management: https://docs.aws.amazon.com/awssupport/latest/user/case-management.html#creating-a-support-casehttps://docs.aws.amazon.com/awssupport/latest/user/case-management.html#creating-a-support-case
answered 8 months ago
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated a year ago
