Google Cloud event pipeline diagram template, as JSON
This page is for anyone who draws an event pipeline on Google Cloud. Its template is 29 lines of JSON with Google Cloud's own icons.
Updated
Event pipeline on Google Cloud. Drawn by open-diagram 0.6.2 from templates/gcp_event_pipeline.json: 0 layout problems. Open in the editor · Source
The picture as text
Event pipeline on Google Cloud
Order events go from Pub/Sub through Cloud Run into storage, a warehouse and a forecast model.
Solid lines: events and data.
Blocks, left to right:
- Order events (Pub/Sub)
- Event processor (Cloud Run)
- Address check (Cloud Functions)
- Raw events (Cloud Storage)
- Orders warehouse (BigQuery)
- Demand forecast (Vertex AI)
Groups:
- 01 Ingest: Order events
- 02 Process: Event processor, Address check
- 03 Store: Raw events, Orders warehouse
- 04 Predict: Demand forecast
- Google Cloud project (Networking and access rules left out): Order events, Event processor, Address check, Raw events, Orders warehouse, Demand forecast
Lines:
- Order events -> Event processor, labeled "push"
- Event processor -> Address check, labeled "address"
- Event processor -> Raw events, labeled "JSON"
- Address check -> Orders warehouse, labeled "rows"
- Orders warehouse -> Demand forecast, labeled "training data"
Note: Fictional workload. No deployed resources Replace the labels; keep each service name under its iconWhat does this Google Cloud diagram show?
Order events arrive in Pub/Sub, which pushes them to an event processor on Cloud Run. The processor writes raw events to Cloud Storage as JSON and sends addresses to a check on Cloud Functions. Rows go from the check to an orders warehouse in BigQuery, and training data from there to a demand forecast on Vertex AI.
Four numbered sections read left to right, inside a dashed box for the Google Cloud project.
What is the template made of?
{
"title": "Event pipeline on Google Cloud",
"tag": "TEMPLATE",
"subtitle": "Order events go from Pub/Sub through Cloud Run into storage, a warehouse and a forecast model.",
"note": {"title": "Fictional workload", "lines": ["No deployed resources", "Replace the labels; keep each service name under its icon"]},
"theme": {"link_labels": {"flow": "Events and data"}},
"resources": [
{"id": "events", "label": "Order events", "sub": "Pub/Sub", "icon": "gcp/pub-sub", "x": 0, "y": 100},
{"id": "process", "label": "Event processor", "sub": "Cloud Run", "icon": "gcp/cloud-run", "x": 320, "y": 100},
{"id": "check", "label": "Address check", "sub": "Cloud Functions", "icon": "gcp/cloud-functions", "x": 320, "y": 340},
{"id": "raw", "label": "Raw events", "sub": "Cloud Storage", "icon": "gcp/cloud-storage", "x": 640, "y": 100},
{"id": "warehouse", "label": "Orders warehouse", "sub": "BigQuery", "icon": "gcp/bigquery", "x": 640, "y": 340},
{"id": "forecast", "label": "Demand forecast", "sub": "Vertex AI", "icon": "gcp/vertex-ai", "x": 960, "y": 340}
],
"enclosures": [
{"id": "ingest", "label": "01 Ingest", "members": ["events"], "border": "solid", "style": "panel"},
{"id": "processing", "label": "02 Process", "members": ["process", "check"], "border": "solid", "style": "panel"},
{"id": "store", "label": "03 Store", "members": ["raw", "warehouse"], "border": "solid", "style": "panel"},
{"id": "predict", "label": "04 Predict", "members": ["forecast"], "border": "solid", "style": "panel"},
{"id": "project", "label": "Google Cloud project", "members": ["ingest", "processing", "store", "predict"], "sub": "Networking and access rules left out", "pad": 40, "border": "dashed"}
],
"links": [
{"from": "events", "to": "process", "label": "push"},
{"from": "process", "to": "check", "label": "address", "start": "bottom", "end": "top"},
{"from": "process", "to": "raw", "label": "JSON"},
{"from": "check", "to": "warehouse", "label": "rows"},
{"from": "warehouse", "to": "forecast", "label": "training data"}
]
}- Six
resources, each with alabelin your words, asubnaming the Google Cloud service, anicon, and anxandyin pixels. - Four numbered enclosures with
"style": "panel", which gives each section the sloped top and gray header of an open-diagram panel. - A fifth enclosure, the project, contains the other four, so it comes last: enclosures are listed from the inside out.
- The line to the address check sets
"start": "bottom", "end": "top", so it drops straight down inside the Process section.
How do I start from this template?
After pip install open-diagram, run open-diagram new gcp_event_pipeline to write gcp_event_pipeline.json in the current folder. Change each label, and keep each sub. To add a resource, copy one, give it a new id, x and y, and add its id to a section's members. Then run open-diagram check gcp_event_pipeline.json and open-diagram draw gcp_event_pipeline.json.
An AI agent connected to the MCP server gets the same JSON from the template tool.
Where do the icons come from, and may I use them?
They are Google's icons for Google Cloud, unchanged, from one fixed version of theSVG catalog, which lists their license as Apache-2.0. Google owns the artwork, and the source is cloud.google.com/icons. open-diagram's MIT license does not cover the icons. Keep their credits, source links and license notices when you share the pictures.
The six icons in this template are the only built-in Google Cloud icons. The cloud icons guide shows how to download others.