No project description provided
Project description
gaarf exporter
Prometheus exporter for Google Ads metrics with customizable metrics collectors.
Installation and usage
Locally
- Install
gaarf-exporter
from pip:
pip install gaarf-exporter
- Run
gaarf-exporter
:
gaarf-exporter
Docker
docker run --network=host \
-v /path/to/google-ads.yaml:/root/google-ads.yaml \
-v `pwd`/gaarf_exporter.yaml:/app/gaarf_exporter.yaml \
gaarf_exporter
docker run --network=host gaarf_exporter \
--config gs://path/to/gaarf_config.yaml \
--ads-config gs://path/to/google-ads.yaml
--network=host
By default it will start http_server on localhost:8000
and will push some basic metrics to it.
Customization
--ads-config
- path togoogle-ads.yaml
--config
- path togaarf_exporter.yaml
--http_server.address
- address of your http server (localhost
by default)--http_server.port
- port of your http server (8000
by default)--pushgateway.address
- address of your pushgateway service (None
by default)--pushgateway.port
- port of your pushgateway (None
by default)--delay-minutes
- delay in minutes between scrapings (15
by default)
Collectors
You can specify collectors with --collectors.<collector_name>
CLI argument. Some collectors available by default, other you need to specify explicitly.
Default collectors
performance
- extractclicks
,impressions
,cost
,conversions
on byad_network
andad_group_id
disapprovals
- extractapproval_status
,review_status
,policy_topic_type
,policy_topics
byad_group_id
andad_id
conversion_action
- extractall_conversions
byconversion_id
andaccount_id
mapping
- performance mapping betweenad_group_id
,ad_group_name
,campaign_id
,campaign_name,
campaign_status
,account_id
,account_name
Available collectors
search_terms
- extractclicks
,impressions
,cost
,conversions
on bysearch_term
andad_group_id
search_terms_conversion_split
- extractall_conversions
bysearch_term
andconversion_id
onad_group_id
levelplacements
- extractclicks
,impressions
,cost
,conversions
on byplacement_name
andplacement_type
bid_budgets
- extract current values of bid (target_cpa, target_roas) and budget
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gaarf-exporter-0.1.0.tar.gz
(17.2 kB
view details)
File details
Details for the file gaarf-exporter-0.1.0.tar.gz
.
File metadata
- Download URL: gaarf-exporter-0.1.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74ff048c9210e8af4a6aa2d022394233d4b500f95c64c5e591e87c7aadc1f584 |
|
MD5 | 1c912b3066870bd5eae3a70d54b4293c |
|
BLAKE2b-256 | 9c4260a58c8dad3a3701e7132baf7cb7fa1bb6e4cbe7a5312ff517a4396969d9 |