Edge Agent Telemetry: Serverless Agent Visibility Service
Serverless telemetry ingestion and observability worker deployed to Cloudflare Edge Workers, collecting metrics for autonomous AI agents.
graph TD
Agent[Autonomous AI Agent] -->|HTTPS Post| EdgeWorker[Cloudflare Edge Worker]
EdgeWorker --> IngressAuth[API Key & Perimeter Auth]
IngressAuth --> RateLimit[Token Bucket Rate Limiter]
RateLimit --> Metrics[Telemetry Normalization & Aggregation]
Metrics --> KVStore[(Cloudflare KV / D1 Analytics)]Architectural Overview
Edge Agent Telemetry runs on Cloudflare Workers edge nodes globally, ensuring single-digit millisecond response times for agent heartbeats, status logs, and error metrics.
Key Components
- Edge Worker (
src/): Stateless TypeScript worker handling ingestion requests, CORS preflights, and token verification. - Wrangler Configuration (
wrangler.toml,wrangler.jsonc): Declarative deployment bindings for Cloudflare Workers environments. - Python Automation Client (
script.py): Companion telemetry agent library for emitting heartbeats and task progress.
Technology Stack
- Runtime: Cloudflare Workers
- Language: TypeScript 5+ / Python 3.11+
- Tooling: Wrangler CLI
Deployment
# Install dependencies
npm install
# Deploy to Cloudflare Workers
npx wrangler deploy