Starlark Multi-Step Script Probes
Write chained API checks (auth → fetch → assert) and emit custom metrics in sandboxed, Python-like Starlark right inside your config — no binary rebuilds.
A single Go binary with native Kubernetes, GCP & file-based auto-discovery. Run HTTP, gRPC, SQL, Starlark, Playwright, or custom probes — export to Prometheus & OpenTelemetry for Grafana dashboards, or fire built-in alerts directly to PagerDuty & Slack.
probe { name: "api_edge_health" type: HTTP targets { k8s { services: "api-gateway" } } interval: "5s" alert { condition { failures: 3 total: 5 } } }
Google-born
Battle-tested at global scale
Originated at Google SRE. Trusted by thousands of teams worldwide — from startups to Fortune 500 fleets (up to ~1.8M sites/instance).
10k+ probes/s
Single static Go binary
Goroutine-per-probe execution with <1ms scheduling overhead. Built-in probes plus custom External binaries & Go extensions.
K8s · GCP · RDS
Native auto-discovery
Continuously resolves Kubernetes Pods, Services, Ingresses, GCE, file, and custom RDS targets — no brittle static endpoint lists.
Prom · OTel · Alerts
Open telemetry & built-in alerts
Exports to Prometheus, OpenTelemetry, Datadog & Cloud Monitoring for Grafana — plus built-in PagerDuty, Slack & webhook alerting.
In production at
Google, Cloudflare, Robinhood, Apple, Snowflake, Uber, DoorDash, Tesla, Walmart, Okta, Goldman Sachs, JPMorgan Chase, Hostinger, DigitalOcean, Disney+, Yahoo Japan, Crusoe, Commonwealth Bank, and more.
Built-in Probe Types
Switch between probe types to inspect minimal cloudprober.cfg definitions alongside the real Prometheus & OpenTelemetry output they emit.
probe { name: "payments_api" type: HTTP targets { host_names: "api.example.com" } http_probe { protocol: HTTPS relative_url: "/v1/health" } validator { name: "status_2xx" http_validator { success_status_codes: "200-299" } } interval: "5s" }
# Exported at :9313/metrics or via OTel OTLP total{probe="payments_api",dst="api.example.com",...} 4820 success{...} 4819 latency{...} 68444000 resp_code{...,code="200"} 4819 validation_failure{...,validator="status_2xx"} 1 # All lines also carry ptype="http"
probe { name: "website_e2e" type: BROWSER targets { host_names: "app.example.com" } interval: "60s" timeout: "30s" browser_probe { test_spec: "checkout.spec.ts" test_dir: "/tests" retries: 1 save_trace: ON_FIRST_RETRY test_metrics_options { enable_step_metrics: true } } }
# Standard + per-test & step metrics total{probe="website_e2e",dst="app.example.com",...} 142 success{...} 142 latency{...} 58504000 test_status{...,test="checkout",status="passed"} 142 test_step_latency{...,step="add_to_cart"} 184200 # Built-in /artifacts UI parses Playwright traces, # screenshots & reports (+ S3/GCS/Azure upload)
/artifacts trace viewer UI · cloudprober:latest-pw
Live Browser Probe Demo ↗probe: - name: "trading_api" type: STARLARK targets: host_names: "api.internal:8080" interval: "10s" starlark_probe: source: | def probe(target): base = "https://%s" % target.name r = http.post(base + "/auth/token", json={"user": "probe"}) assert.http_status(r, 200) hdr = {"Authorization": "Bearer " + r.json()["token"]} r = http.get(base + "/v1/orders", headers=hdr) assert.http_status(r, 200) print_metric("open_orders %d" % len(r.json()["orders"]))
# Runs in-process inside the Go binary total{probe="trading_api",dst="api.internal:8080",...} 8640 success{...} 8640 latency{...} 332640000 # Custom metric emitted via print_metric() open_orders{probe="trading_api",...} 42 # All lines also carry ptype="starlark"
probe { name: "orders_grpc" type: GRPC targets { k8s { services: "orders-svc" } } grpc_probe { method: GENERIC request { call_service_method: "orders.v1.OrderService.Health" body: "{}" } } interval: "5s" }
# gRPC Health, ECHO & generic reflection total{probe="orders_grpc",dst="orders-svc",...} 12400 success{...} 12398 latency{...} 2306400000 connecterrors{...} 2 # All lines also carry ptype="grpc"
probe { name: "pg_primary" type: SQL targets { host_names: "pg-primary:5432" } interval: "10s" sql_probe { flavor: POSTGRES user: "prober" password: "{{envSecret "DB_PASSWORD"}}" database: "app" query: "SELECT 1" } }
# Full TCP + TLS + auth + query latency total{probe="pg_primary",dst="pg-primary:5432",...} 3600 success{...} 3600 latency{...} 23040000 # Also exports query rows directly as metrics # All lines also carry ptype="sql"
probe { name: "redis_check" type: EXTERNAL targets { host_names: "redis:6379" } external_probe { mode: ONCE command: "/probes/redis_probe -host=@address@ -port=@port@" } alert { condition { failures: 2 total: 3 } } interval: "10s" }
# Any binary/script — stdout lines become metrics total{probe="redis_check",dst="redis:6379",...} 2400 success{...} 2400 latency{...} 59520000 # Custom stdout metrics (or Go extensions) op_latency_ms{...,op="set"} 22.65 op_latency_ms{...,op="get"} 2.17
EXTERNAL) or embed custom Go probes.
External Probe →
Go Extensions →Telemetry Data Flow
Cloudprober discovers targets, schedules probes, validates responses, and exports via surfacers to Prometheus, OpenTelemetry, Datadog, or Cloud Monitoring — which then feed Grafana dashboards and alerting.
Cloudprober Engine: Runs as a single Go binary with a goroutine per probe. Handles target refresh, concurrent scheduling, response validation, and serves a built-in /status and /artifacts UI even if your downstream observability stack is degraded.
Candid Trade-offs
No marketing fluff — how Cloudprober compares to commercial SaaS synthetics and homegrown cron/script setups.
| Dimension | Cloudprober (Open Source) | SaaS Synthetics | DIY Scripts / Cron |
|---|---|---|---|
| Scale & Cost Economics | ✓Flat infra cost. 10k+ probes/sec per core; no per-check or per-location billing cliffs. | ✕Expensive at high frequency or across thousands of internal microservices. | ~Low direct cost, but CPU/memory balloons with Python/Node subprocesses. |
| Private VPC & Mesh Probing | ✓Runs directly inside Kubernetes, VPCs, and edge PoPs with zero firewall holes. | ~Requires maintaining private location agents or exposing endpoints. | ✓Runs internally, but lacks unified scheduling and jitter control. |
| Auto-Discovery & GitOps | ✓Native K8s, GCP, file, and RDS target discovery with Go-templated configs. | ~Terraform providers exist, but dynamic pod/service discovery is bolted on. | ✕Custom glue code required for every cloud or cluster API. |
| Telemetry, Dashboards & Alerting | ✓First-class Prometheus & OTel surfacers feed Grafana — plus built-in alerting (PagerDuty, OpsGenie, Slack, webhooks) & /alerts UI. | ✕Metrics locked in vendor UI; extra cost/latency to export to Grafana. | ~You build and maintain your own Pushgateway, OTLP, and alert routing glue. |
| Browser, Multi-Step & Custom Probes | ✓Playwright Browser Probes, sandboxed Starlark scripts, arbitrary External binaries (any language), and Go extensions. | ✓Polished recorder UI, billed per browser run; limited custom protocol support. | ✕Flaky cron wrappers around scripts/Playwright with manual artifact cleanup. |
| Operational Ownership | ~Self-hosted — you deploy the container/binary (typically a single Deployment or DaemonSet). | ✓Fully managed global PoPs out of the box. | ✕High ongoing maintenance burden; breaks silently when owners leave. |
Already running Prometheus Blackbox Exporter? Read the technical comparison: Blackbox Exporter vs. Cloudprober ↗
Recent Momentum
Recent probe capabilities and engineering write-ups from teams running Cloudprober in production.
Write chained API checks (auth → fetch → assert) and emit custom metrics in sandboxed, Python-like Starlark right inside your config — no binary rebuilds.
Run real Chromium user journeys on a schedule with automatic per-test/per-step metrics, built-in /artifacts trace viewer UI, and S3/GCS/Azure storage.
Track accurate p50/p95/p99 latency with Prometheus native histograms and OTel exponential histograms — one series per metric, zero manual bucket tuning.
Launch Cloudprober locally with one command and inspect live status at localhost:9313/status and Prometheus metrics at /metrics.
$ docker run -p 9313:9313 cloudprober/cloudprober