- Newest
- Most votes
- Most comments
The issue appears to be with the structure of your Ground Truth data. Based on the examples provided, there's a mismatch between your Ground Truth JSON structure and what SageMaker Model Monitor expects.
In your Ground Truth data, you're using groundTruthMetadata as the key for the metadata section, but SageMaker Model Monitor expects eventMetadata instead. The correct structure for Ground Truth data should be:
{ "groundTruthData": { "data": "0", "encoding": "CSV" }, "eventMetadata": { "eventId": "d8f02eeb-73ca-46d1-b929-1293c2599393", "inferenceId": "2025-09-23-17-25_ca4e4962-2169-4559-8f60-b05ab7809750", "inferenceTime": "2025-09-23T17:49:15Z" }, "eventVersion": "0" }
When ingesting Ground Truth labels and merging them with predictions, SageMaker Model Monitor uses either the inferenceId or eventId to match the Ground Truth records with the captured prediction data. The inferenceId is the preferred identifier, and it must match exactly between your captured data and Ground Truth data.
Additionally, ensure that:
- The date in the Ground Truth S3 path (which represents when the Ground Truth label was collected) falls within the analysis window specified in your monitoring job.
- The
inferenceIdvalues in your Ground Truth data match exactly with those in your captured prediction data. - The format of your Ground Truth data follows the expected jsonlines format.
If you've already tried the correct structure with eventMetadata instead of groundTruthMetadata, then check if there might be other issues such as:
- Time zone discrepancies between inference time and analysis window
- S3 permissions issues preventing the monitoring job from accessing the data
- Mismatched
inferenceIdvalues between captured data and Ground Truth data
Sources
Governing the ML lifecycle at scale: Centralized observability with Amazon SageMaker and Amazon CloudWatch | AWS Machine Learning Blog
Ingest Ground Truth labels and merge them with predictions - Amazon SageMaker
Model quality - Amazon SageMaker
answered a year ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
