Skip to content

MLOps on Google Cloud with Agent Platform

MLOps on Gemini Enterprise Agent Platform (formerly Vertex AI): Cloud Build ships the pipeline, Pub/Sub and Cloud Run functions start it, Dataflow and Managed Training feed Model Registry and an online endpoint, and drift alerts retrain.

gcplogos18 nodes5 groups18 edges
Edit in the playgroundOpen full size
MLOps on Google Cloud: Cloud Build ships pipeline code to Agent Platform Pipelines, which trains, registers and serves a model; drift alerts restart it through Cloud Logging, Pub/Sub and Cloud Run functionsMLOps on Google Cloud: Cloud Build ships pipeline code to Agent Platform Pipelines, which trains, registers and serves a model; drift alerts restart it through Cloud Logging, Pub/Sub and Cloud Run functionsMLOps on Google Cloud: Cloud Build ships pipeline code to Agent Platform Pipelines, which trains, registers and serves a model; drift alerts restart it through Cloud Logging, Pub/Sub and Cloud Run functionsMLOps on Google Cloud: Cloud Build ships pipeline code to Agent Platform Pipelines, which trains, registers and serves a model; drift alerts restart it through Cloud Logging, Pub/Sub and Cloud Run functions
gcp-vertex-mlops.yamlOn GitHub
# yaml-language-server: $schema=../references/diagram.schema.json
# After Google's Cloud Architecture Center "Architecture for MLOps using TensorFlow Extended,
# Agent Platform Pipelines, and Cloud Build": CI/CD with Cloud Build, triggers through Pub/Sub
# and Cloud Run functions, a pipeline that runs its steps on Dataflow and Managed Training,
# and Model Monitoring alerts that start the next run.
title: MLOps on Google Cloud with Agent Platform
subtitle: Cloud Build ships the pipeline; Gemini Enterprise Agent Platform (formerly Vertex AI) trains, registers and serves the model, and drift alerts retrain it
direction: down
# Product cards, as in Google Cloud's own architecture diagrams.
look: card
# The figure is one loop: delivery and triggers on top, the pipeline across the middle,
# serving back along the bottom, and drift alerts up the left side to the triggers.
layout: { spacing: compact }

legend:
  solid: Delivery, training and inference
  dashed: Pipeline triggers
  dotted: Artifacts and lineage

groups:
  source: { type: gcp:external, label: GitHub }
  gcloud: { type: gcp:cloud }
  project: { type: gcp:project, label: Project ml-prod, in: gcloud }
  pipeline: { type: gcp:tier, label: Agent Platform Pipelines, in: project }
  serving: { type: gcp:tier, label: Serving, in: project }

# Agent Platform services (formerly Vertex AI) draw the Vertex AI core icon from Google's
# product icon download. Cloud Run functions keeps the Serverless Computing icon that the
# icon guide assigns to it under its former name, Cloud Functions.
nodes:
  scientists: { icon: generic:users, label: Data scientists }
  repo: { icon: logos:github-icon, label: Source repository, note: Pipeline and component code, in: source }
  # The alert source first, above the left side where the drift alerts climb.
  logging: { icon: gcp:cloud-logging, label: Cloud Logging, note: Alert log filter, in: project }
  scheduler: { icon: gcp:cloud-scheduler, label: Cloud Scheduler, in: project }
  build: { icon: gcp:cloud-build, label: Cloud Build, note: Test and compile, in: project }
  topic: { icon: gcp:pubsub, label: Pub/Sub, note: Trigger topic, in: project }
  registry: { icon: gcp:artifact-registry, label: Artifact Registry, note: Images and pipeline template, in: project }
  # The training inputs share the launcher's row (align), right above the step that reads them.
  bigquery: { icon: gcp:bigquery, label: BigQuery, note: Training data, in: project, align: launcher }
  features: { icon: gcp:vertex-ai, label: Feature Store, in: project, align: launcher }
  launcher: { icon: gcp:cloud-functions, label: Cloud Run functions, note: Submits PipelineJob, in: project }
  # The steps run left to right in one row (align).
  prep: { icon: gcp:dataflow, label: Validate and transform, note: Dataflow, in: pipeline }
  train: { icon: gcp:vertex-ai, label: Managed Training, note: Train and tune, in: pipeline, align: prep }
  evaluate: { icon: gcp:dataflow, label: Evaluate and validate, note: Dataflow, in: pipeline, align: prep }
  artifacts: { icon: gcp:cloud-storage, label: Cloud Storage, note: Pipeline artifacts, in: project }
  metadata: { icon: gcp:vertex-ai, label: Vertex ML Metadata, note: Lineage, in: project }
  # Model Registry stores the model under the last step; serving runs back right to left in one
  # row (align), so Model Monitoring ends under Cloud Logging.
  models: { icon: gcp:vertex-ai, label: Model Registry, in: project }
  monitor: { icon: gcp:vertex-ai, label: Model Monitoring, note: Skew and drift, in: serving, align: endpoint }
  endpoint: { icon: gcp:vertex-ai, label: Endpoint, note: Online inference, in: serving }

edges:
  - scientists -> repo: push
  - repo -> build: build trigger
  - build -> registry: push
  - registry -> launcher: pipeline template
  - scheduler, logging --> topic: publish
  - topic --> launcher: subscribe
  - launcher --> pipeline: run
  - bigquery -> prep: query
  - features -> prep: fetch features
  - prep -> train -> evaluate
  - evaluate -> models: register
  - models -> endpoint: deploy
  - endpoint -> monitor: request logs
  # The retraining loop climbs back to the triggers; written in layout order with the
  # arrowhead at the start so Cloud Logging stays a publisher beside Cloud Scheduler.
  - { from: logging, to: monitor, arrow: start, line: dashed, label: drift alerts }
  - pipeline ..> artifacts, metadata

Start from this one

Copies the spec to diagram.yaml, then renders every format.

$ orrery init gcp-vertex-mlops$ orrery render diagram.yaml -f all --theme both