{"id":21696392,"url":"https://github.com/metrics-pli/bigquery-export","last_synced_at":"2026-05-16T23:02:38.255Z","repository":{"id":143760986,"uuid":"133383880","full_name":"metrics-pli/bigquery-export","owner":"metrics-pli","description":"Exports collected metrics to Google Big Query","archived":false,"fork":false,"pushed_at":"2018-05-18T14:05:08.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T04:57:45.388Z","etag":null,"topics":["bigquery","datastudio","lighthouse","metrics","metrics-pli","performance","pupeteer"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metrics-pli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-14T15:35:28.000Z","updated_at":"2018-05-18T14:05:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e85b433-f6d6-4572-b6bb-bc45f86ed3d8","html_url":"https://github.com/metrics-pli/bigquery-export","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrics-pli%2Fbigquery-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrics-pli%2Fbigquery-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrics-pli%2Fbigquery-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrics-pli%2Fbigquery-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metrics-pli","download_url":"https://codeload.github.com/metrics-pli/bigquery-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244159984,"owners_count":20408019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","datastudio","lighthouse","metrics","metrics-pli","performance","pupeteer"],"created_at":"2024-11-25T19:19:43.152Z","updated_at":"2026-05-16T23:02:33.234Z","avatar_url":"https://github.com/metrics-pli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bigquery-export\n\nExports collected metrics to Google Big Query\nCan be hooked up very easily to a metricsPli instance.\n\nYou can debug logs via `DEBUG=mpli:bqexport`.\nThe bigquery config fields accepts all parameters that you can pass to\n`@google-cloud/bigquery`.\n\n```javascript\nimport MetricsPli, { ConfigInterface, TestInterface } from \"@metrics-pli/core\";\nimport Exporter from \"@metrics-pli/exporter-bigquery\";\n\nconst keyFilename = \"/Users/jondoe/Documents/jons-plat-123.json\";\n\nconst exporterConfig = {\n    bigquery: {\n        projectId: \"123123123\",\n        keyFilename,\n    },\n    dataset: \"my_metrics_dataset\",\n    table: \"my_metrics_table\",\n    batchSize: 75,\n    batchTimeout: 60 * 1000,\n};\n\nconst tests: TestInterface[] = [{\n  name: \"Homepage\",\n  url: \"https://google.com/\",\n}];\n\nconst config: ConfigInterface = {};\n\n(async () =\u003e {\n  const metricsPli = new MetricsPli(tests, config);\n  const bqExporter = new Exporter(exporterConfig);\n\n  await bqExporter.init();\n  bqExporter.registerWith(metricsPli);\n\n  // will also emit exporter error events\n  metricsPli.on(\"error\", console.error);\n  metricsPli.on(\"info\", console.info);\n \n  await metricsPli.run();\n  await bqExporter.close();\n})();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetrics-pli%2Fbigquery-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetrics-pli%2Fbigquery-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetrics-pli%2Fbigquery-export/lists"}