Loading...
Loading...
Query Mozilla telemetry data directly from BigQuery using the bq CLI. Use when the user wants to run SQL against Firefox telemetry, analyze Windows version distribution, count DAU/MAU/WAU, query Glean metrics, or investigate user populations. Triggers on "bigquery", "bq", "telemetry query", "DAU", "MAU", "Windows distribution", "macOS distribution", "Darwin version", "Linux distribution", "kernel version", "client count", "user count", "Glean metrics query", "baseline_clients".
npx skill4agent add jwmossmoz/agent-skills bigquerybqgcloudbqbrew install google-cloud-sdkgcloud auth loginbigquery.jobs.create# Check current account
gcloud config get-value account
# Re-authenticate if needed
gcloud auth login
# List available projects
gcloud projects list --format="table(projectId,name)"
# Set billing project (mozdata is the standard choice)
gcloud config set project mozdata--project_id=mozdata# Basic query
bq query --project_id=mozdata --use_legacy_sql=false --format=pretty "SELECT ..."
# Dry run (check cost before executing)
bq query --project_id=mozdata --use_legacy_sql=false --dry_run "SELECT ..."--project_id=mozdata--use_legacy_sql=false| Query Type | Table | Why |
|---|---|---|
| Windows version distribution | | Pre-aggregated, instant |
| DAU/MAU by standard dimensions | | Pre-computed, 100x faster |
| DAU with custom dimensions | | One row per client per day |
| MAU/WAU/retention | | Bit patterns, scan 1 day not 28 |
| Event analysis | | Pre-unnested, clustered |
| Mobile search | | Pre-aggregated |
| Specific Glean metric | | Raw metrics ping |
moz-fx-data-shared-prod`moz-fx-data-shared-prod.{dataset}.{table}`submission_dateDATE(submission_timestamp)sample_id = 0client_idevents_streamevents_v1baseline_clients_last_seenreferences/tables.mdreferences/os-versions.md