Iām trying to create a Vertex AI endpoint with Monitoring enabled that can trigger a Vertex AI pipeline execution when one of the deployed models drops its performance. However, Vertex AI does not provide any built-in feature to do it. Is there a method to capture the alert thrown by Vertex AI Monitoring and trigger the Pipeline?
Asked
Active
Viewed 621 times
3
-
the question needs sufficient code for a minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example ā D.L Sep 02 '22 at 20:27
-
I think the author cannot add code to reproduce the problem. Because the question is related to visual components of Vertex AI. ā Andrea Cola Sep 05 '22 at 13:04
-
Could you be a little more specific about your use case, could you share a code snippet? ā Eduardo Ortiz Sep 08 '22 at 19:52
1 Answers
2
- The Vertex AI Model Monitoring jobs are logged as part of Cloud Logging 1.
- You can react to those loggings using log-based alerts 2. For that, you need to configure a notification channel to PubSub 3
- Based on those PubSub message you can trigger a Cloud Function 4
- The Cloud Function can initiate the Vertex AI Pipeline run to re-train the model 5
https://cloud.google.com/vertex-ai/docs/model-monitoring/using-model-monitoring#cloud-logging-info
https://cloud.google.com/logging/docs/alerting/log-based-alerts
https://cloud.google.com/functions/docs/calling/pubsub
https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.pipelineJobs/create

Sascha Heyer
- 71
- 4