Eventarc は GCP の統一イベントルーティング基盤で、90+ サービスのイベントを CloudEvents 標準形式で Cloud Run / Cloud Functions / Workflows / GKE に配信します。「GCP のイベント駆動の中央神経」と位置づけられるサービスです。
| カテゴリ | 例 |
|---|---|
| Cloud Storage | finalize / delete / metadataUpdate |
| Pub/Sub | topic.publish |
| Cloud Audit Logs | 90+ サービスの API 操作 |
| BigQuery | jobCompleted |
| Cloud Build | build.created / build.finished |
| Firestore | document.created / updated / deleted |
| Cloud Scheduler | 定期実行 |
| Vertex AI | training.completed / endpoint.deployed |
# 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"
{
"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"
}
}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)| 項目 | Eventarc | AWS EventBridge | Azure Event Grid |
|---|---|---|---|
| 標準 | CloudEvents | 独自 JSON | CloudEvents 対応 |
| イベントソース | 90+ | 200+ | 50+ |
| Schema Registry | — | ◎ | ○ |
| Filter | 属性 + パターン | パターンマッチ | Subject フィルタ |
| 料金 | ~無料 | $1/100 万 | $0.6/100 万 |
Eventarc とは何ですか?
GCP の統一イベントルーティング基盤。GCP サービス (GCS / Audit Logs 等) のイベントを CloudEvents 形式で配信し、Cloud Run / Functions / Workflows / GKE をトリガーする標準パターン。
Pub/Sub との違いは?
Eventarc は Pub/Sub の上にイベント標準化レイヤを構築。CloudEvents 仕様、Filter / Routing / Schema 統合、90+ イベントソース対応。実体は Pub/Sub だが GCP 内部で抽象化。
対応イベントソースは?
Cloud Audit Logs (90+ サービスから)、Cloud Storage、Pub/Sub、Direct events (BigQuery / Cloud Build / Firestore 等)、サードパーティ (2024〜)。
対応ターゲットは?
Cloud Run、Cloud Functions (2nd gen)、Workflows、GKE Cluster (Anthos)。HTTP エンドポイントなら基本何でも可。
CloudEvents とは?
CNCF のイベントメタデータ標準仕様 (id / type / source / time)。Eventarc は CloudEvents 1.0 準拠で配信、Vendor lock-in 回避。
料金体系は?
Eventarc 自体は無料 (内部 Pub/Sub の料金のみ)。月 6 GB Pub/Sub 取り込み無料。実質ほぼ無料で利用可能。
Filter はどう設定する?
type / serviceName / methodName 等の属性で絞り込み (= / pattern match)。例: 特定 GCS バケットのみ、特定 IAM 操作のみ。
AWS EventBridge との比較は?
EventBridge は Schema Registry / Pipes / Archive 機能が豊富、Eventarc は GCP 統合と CloudEvents 標準準拠が強み。
関連記事・イベント駆動
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 は Google LLC の商標です。最新情報は Eventarc 公式 をご確認ください。
NicheeLab編集部
データエンジニアリング・クラウド資格の専門家。Databricks・Snowflake等の認定資格を保有し、実務経験に基づいた問題作成・解説を行っています。NicheeLab運営。
Google Cloud (GCP) 認定資格ロードマップ 2026 完全版|全 15 試験を体系化
Google Cloud 認定資格 全 15 試験 (Foundational 2 + Associate 3 + Pr...
Cloud Digital Leader (CDL) 完全ガイド|出題範囲・学習リソース・合格戦略
Google Cloud Cloud Digital Leader (CDL) の完全ガイド。6 ドメイン 92 bul...
Generative AI Leader (GAIL) 完全ガイド|Google Cloud 生成 AI 認定
Google Cloud Generative AI Leader (GAIL、2025-05-14 リリース) の完全...
Vertex AI 入門|Google Cloud 統合 ML プラットフォームの全機能
Google Cloud Vertex AI の入門解説。Vertex AI Studio / Agent Builde...
GCP Associate Cloud Engineer (ACE) 完全ガイド|試験範囲・受験料・学習ロードマップ
Google Cloud Associate Cloud Engineer (ACE) の試験範囲・受験料 125 US...