{"id":19381262,"url":"https://github.com/probably-not/google_adexchangebuyer_exporter","last_synced_at":"2026-05-16T19:38:06.017Z","repository":{"id":143658282,"uuid":"374330644","full_name":"probably-not/google_adexchangebuyer_exporter","owner":"probably-not","description":"A Prometheus Exporter for the Google Ad Exchange Buyer API II","archived":false,"fork":false,"pushed_at":"2021-07-20T04:45:11.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T06:32:14.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/probably-not.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-06-06T10:27:28.000Z","updated_at":"2022-03-09T15:26:52.000Z","dependencies_parsed_at":"2023-04-12T22:47:44.974Z","dependency_job_id":null,"html_url":"https://github.com/probably-not/google_adexchangebuyer_exporter","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/probably-not%2Fgoogle_adexchangebuyer_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probably-not%2Fgoogle_adexchangebuyer_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probably-not%2Fgoogle_adexchangebuyer_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probably-not%2Fgoogle_adexchangebuyer_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probably-not","download_url":"https://codeload.github.com/probably-not/google_adexchangebuyer_exporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240517253,"owners_count":19814166,"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":[],"created_at":"2024-11-10T09:16:28.454Z","updated_at":"2026-05-16T19:38:00.994Z","avatar_url":"https://github.com/probably-not.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Ad Exchange Buyer Exporter\n\nThis is an exporter for the Google Ad Exchange Buyer API II. It exports all of the available metrics from the API, in order to allow you to build a view similar to the RTB Breakout Troubleshooting view in the Realtime Bidding Console.\n\nIn order to use this properly, you must first start by requesting a higher quota for the Ad Exchange Buyer API II. The base quota only allows 1000 queries per day, which is not enough if you want to be scraping near-realtime metrics. See [this page](https://developers.google.com/authorized-buyers/apis/limits) for more details of how to request a quota upgrade.\n\nEach scrape of the metrics currently makes 8 requests to the API, and the default setting is to scrape once every 10 seconds. In order to have a high enough quota, I recommend requesting an increase to 100,000 requests per day for the __\"RTB Troubleshooting per day\"__ quota.\n\n## Getting Started\n\nTo run it:\n\n```bash\n./google-adexchangebuyer-exporter --google.service-account=\"$(GOOGLE_SERVICE_ACCOUNT)\" --google.bidder-id=\"$(GOOGLE_BIDDER_ID)\"\n```\n\nWhere `GOOGLE_SERVICE_ACCOUNT` is a service account that can access the Google Ad Exchange Buyer API II, and `GOOGLE_BIDDER_ID` is the bidder ID that you are trying to extract the data for.\n\n## Docker\n\nTo run the exporter as a Docker container, run:\n\n```bash\ndocker run -p 9835:9835 probablynot/google-adexchangebuyer-exporter --google.service-account=\"$(GOOGLE_SERVICE_ACCOUNT)\" --google.bidder-id=\"$(GOOGLE_BIDDER_ID)\"\n```\n\n## Deploying in Kubernetes\n\nThis repo provides Kusomize manifests in order to deploy to Kubernetes. In order to deploy to Kubernetes, you can clone this repo and run:\n\n```bash\nkustomize build deploy/base | kubectl apply -f -\n```\n\nThis will initialize all of the necessary resources. It is important to add a `config.env` file underneath the [base folder](/deploy/base) in order to generate the secrets file for the environment. The `config.env` file should look something like this:\n\n```sh\nGOOGLE_SERVICE_ACCOUNT=\u003c\u003cYOUR SERVICE ACCOUNT JSON\u003e\u003e\nGOOGLE_BIDDER_ID=\u003c\u003cYOUR GOOGLE BIDDER ID\u003e\u003e\n```\n\nWithout this `config.env` file, the deployment will not be able to get the necessary credentials to query the endpoints.\n\n### Usage with the Prometheus Operator\n\nThere is a Kustomize overlay with a service monitor for usage with the Prometheus Operator. This will deploy a Service and a ServiceMonitor to allow the Prometheus Operator to discover the exporter. To use this deployment, you can run:\n\n```bash\nkustomize build deploy/prometheus-operator | kubectl apply -f -\n```\n\n### Usage with Standard Prometheus\n\nIf you are using this repo with the standard Prometheus setup as opposed to the Prometheus Operator, you may use the standard Prometheus overlay. To do this, run:\n\n```bash\nkustomize build deploy/standard-prometheus | kubectl apply -f -\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobably-not%2Fgoogle_adexchangebuyer_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobably-not%2Fgoogle_adexchangebuyer_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobably-not%2Fgoogle_adexchangebuyer_exporter/lists"}