Google Cloud

Eventarc Complete Guide: CloudEvents, 90+ Event Sources & Serverless Triggers

2026-05-24
NicheeLab Editorial Team

Eventarc is GCP's unified event routing platform, delivering events from 90+ services in the CloudEvents standard format to Cloud Run / Cloud Functions / Workflows / GKE. It can be thought of as the central nervous system for event-driven architectures on GCP.

Core Concepts

  • Trigger: Routing rule from event source to target
  • Event Provider: The event origin (Cloud Audit Logs / GCS / Pub/Sub, etc.)
  • Destination: The event delivery target (Cloud Run / Functions / Workflows)
  • CloudEvents: CNCF standard event metadata spec
  • Filter: Filter by type / serviceName / methodName

Key Event Sources

CategoryExamples
Cloud Storagefinalize / delete / metadataUpdate
Pub/Subtopic.publish
Cloud Audit LogsAPI operations from 90+ services
BigQueryjobCompleted
Cloud Buildbuild.created / build.finished
Firestoredocument.created / updated / deleted
Cloud SchedulerScheduled runs
Vertex AItraining.completed / endpoint.deployed

Trigger Creation Examples

# GCS バケットアップロード → Cloud Run トリガー
gcloud eventarc triggers create my-trigger \
  --location=asia-northeast1 \
  --destination-run-service=image-processor \
  --destination-run-region=asia-northeast1 \
  --event-filters="type=google.cloud.storage.object.v1.finalized" \
  --event-filters="bucket=my-upload-bucket" \
  [email protected]

# Audit Log → Cloud Functions (特定操作)
gcloud eventarc triggers create iam-audit-trigger \
  --location=asia-northeast1 \
  --destination-run-service=audit-handler \
  --event-filters="type=google.cloud.audit.log.v1.written" \
  --event-filters="serviceName=iam.googleapis.com" \
  --event-filters="methodName=google.iam.admin.v1.SetIamPolicy"

CloudEvents Format

{
  "specversion": "1.0",
  "id": "12345-abcde",
  "source": "//storage.googleapis.com/projects/_/buckets/my-bucket",
  "type": "google.cloud.storage.object.v1.finalized",
  "datacontenttype": "application/json",
  "subject": "objects/photo.jpg",
  "time": "2026-05-24T10:00:00.000Z",
  "data": {
    "bucket": "my-bucket",
    "name": "photo.jpg",
    "size": "1024000",
    "contentType": "image/jpeg"
  }
}

Receiver Code Example (Cloud Run / Python)

from cloudevents.http import from_http
from flask import Flask, request

app = Flask(__name__)

@app.route("/", methods=["POST"])
def handle_event():
    event = from_http(request.headers, request.get_data())
    print(f"Event ID: {event['id']}")
    print(f"Event Type: {event['type']}")
    print(f"Data: {event.data}")
    # 処理ロジック
    return ("", 204)

Pricing

  • Eventarc itself: Free
  • Underlying Pub/Sub: $40/TB (first 6 GB/month free)
  • Targets (Cloud Run / Functions): per-service pricing
  • Effectively near-free even for large-scale usage

Comparison with Other Clouds

ItemEventarcAWS EventBridgeAzure Event Grid
StandardCloudEventsProprietary JSONCloudEvents supported
Event sources90+200+50+
Schema RegistryExcellentGood
FilterAttributes + patternsPattern matchSubject filter
Pricing~Free$1 per million$0.6 per million

Typical Use Cases

  • GCS upload → image resize / OCR / ML inference
  • BigQuery query completion → notification / next-step trigger
  • IAM change audit → security notification (Audit Log → Cloud Functions)
  • Firestore change → Algolia index update
  • Vertex AI training completion → model evaluation / deployment
  • Cloud Build completion → Cloud Deploy release creation

What is Eventarc?

GCP's unified event routing platform. It delivers events from GCP services (GCS, Audit Logs, etc.) in CloudEvents format and triggers Cloud Run / Functions / Workflows / GKE as a standard pattern.

How does it differ from Pub/Sub?

Eventarc builds an event standardization layer on top of Pub/Sub: CloudEvents spec, filter/routing/schema integration, and 90+ event source support. The underlying transport is Pub/Sub, but GCP abstracts it internally.

Which event sources are supported?

Cloud Audit Logs (from 90+ services), Cloud Storage, Pub/Sub, direct events (BigQuery, Cloud Build, Firestore, etc.), and third-party sources (since 2024).

Which targets are supported?

Cloud Run, Cloud Functions (2nd gen), Workflows, and GKE Cluster (Anthos). Essentially any HTTP endpoint works.

What is CloudEvents?

A CNCF standard spec for event metadata (id / type / source / time). Eventarc delivers events that comply with CloudEvents 1.0, helping you avoid vendor lock-in.

What is the pricing model?

Eventarc itself is free (you only pay for the underlying Pub/Sub). The first 6 GB/month of Pub/Sub ingestion is free, so in practice it is nearly free to use.

How are filters configured?

Filter by attributes such as type / serviceName / methodName (equality or pattern match). Examples: only a specific GCS bucket, or only a specific IAM operation.

How does it compare to AWS EventBridge?

EventBridge offers richer Schema Registry / Pipes / Archive features, while Eventarc's strengths are tight GCP integration and full CloudEvents standard compliance.

Related Articles: Event-Driven Architectures

Workflows / Cloud Tasks 完全ガイド|サーバレスオーケストレーション (GCP)

Google Cloud Workflows と Cloud Tasks の全機能解説。YAML ベース DAG、サーバレス、Eventarc 統合、Cloud Composer / Pub/Sub との使い分け、AWS Step Functions / Azure Logic Apps 比較を網羅。

Cloud Logging 完全ガイド|ログクエリ・Log Router・Audit Logs・保持期間 (GCP)

Google Cloud Cloud Logging の全機能解説。Logging Query Language (LQL)、Log-based Metric、Log Router (Sink)、Audit Logs、Log Bucket、料金、CloudWatch Logs / Azure Monitor 比較を網羅。

Cloud Scheduler + Cloud Functions/Run で定期バッチ自動化チュートリアル (GCP)

Google Cloud Scheduler と Cloud Functions / Cloud Run Job で定期バッチ自動化。cron 形式、OIDC 認証、リトライ、Dead Letter、Workflows 連携、Cloud Run Job 並列実行を 2026 年最新版で解説。

GCP Professional Cloud Developer (PCD) 完全ガイド|Cloud Run・GKE・CI/CD・APM

Google Cloud Professional Cloud Developer の試験範囲、Cloud Run / GKE / Cloud Build / Cloud Trace、AWS DVA / Azure AZ-204 比較、学習ロードマップを徹底解説。

* Google Cloud is a trademark of Google LLC. For the latest information, please refer to the official Eventarc documentation.

Check what you learned with practice questions

Practice with certification-focused question sets

View GCP exam prep page
Author

NicheeLab Editorial Team

NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.


Related articles
Google Cloud

Google Cloud Certification Roadmap (2026)

Choose your GCP certification path — Foundational, Associate...

Google Cloud

CDL Cloud Digital Leader: Complete Exam Guide (2026)

Pass the Cloud Digital Leader exam — cloud business value, G...

Google Cloud

GAIL Generative AI Leader: Complete Exam Guide (2026)

Pass the Generative AI Leader exam — Gemini, Vertex AI, Work...

Google Cloud

Vertex AI Fundamentals for GCP Certs (2026)

Vertex AI basics every cert candidate needs — Workbench, Pip...

Google Cloud

Associate Cloud Engineer (ACE): Complete Guide (2026)

Pass the Associate Cloud Engineer exam — Console, gcloud, pr...

Browse all Google Cloud articles (103)
© 2026 NicheeLab All rights reserved.