Prometheus exporter powered by Cloudflare GraphQL API.
Project description
# Prometheus Cloudflare Exporter
Prometheus exporter powered by Cloudflare GraphQL API.
<p align=”left”> <a href=”https://github.com/transferwise/cloudflare-exporter/actions”><img alt=”Actions Status” src=”https://github.com/transferwise/cloudflare-exporter/workflows/Build & Test/badge.svg”></a> </p>
## Quickstart
Examples:
$ export CLOUDFLARE_TOKEN=’Bearer fbfa1860-410f-45d5-a9d6-c9af96cbd7d2’ $ mkdir playground $ cp example.config.yaml playground/ # fill in the zones info in playground/example.config.yaml $ cfexpose export playground/example.config.yaml
## Example Dashboards ![Grafana 1](static/images/dashboard_1.png?raw=true “Grafana 1”) ![Grafana 2](static/images/dashboard_2.png?raw=true “Grafana 2”)
# Configuration options
Required environment variables: * CLOUDFLARE_TOKEN * CLOUDFLARE_ACCOUNT_TAG
Optional environment variables: * EXPORTER_PORT
Required permissions for the token:
![Analytics](static/images/APIKey.png?raw=true “Analytics: Read”)
# Limits
For up-to-date information, please refer Cloudflare [documentation](https://developers.cloudflare.com/analytics/graphql-api/limits) on APL limits.
GraphQL API access restrictions by license:
- free:
- zones:
browserPerf1mGroups firewallEventsAdaptive firewallEventsAdaptiveByTimeGroups
- accounts/zones:
httpRequests1hGroups httpRequests1dGroups
- pro:
firewallEventsAdaptiveGroups healthCheckEvents healthCheckEventsGroups httpRequests1mGroups loadBalancingRequests loadBalancingRequestsGroups
- business:
- enterprise:
firewallRulePreviewGroups httpRequests1mByColoGroups httpRequests1dByColoGroups synAvgPps1mGroups
# History
0.1.0 (2020-02-19)
First release on PyPI.
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
Built Distribution
Hashes for cloudflare-prometheus-exporter-0.3.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 732ed023c91dd7dc5b899405fc80c5e48809bfa63e9acbc296d65ebc29c2b0a1 |
|
MD5 | a11c1c54197e0f93c531b95f02cf05d4 |
|
BLAKE2b-256 | ca111e08dee765754906583818b132ff0022fc68c8735d627531c07090f3cc8c |
Hashes for cloudflare_prometheus_exporter-0.3.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f46802689e61e894b2d69c4bedf8d27d5fc03c4c87a668bd7cbd2e15b24782fd |
|
MD5 | 4ff945ab24f22ec8bdc5cb6c3d991729 |
|
BLAKE2b-256 | c5b16ecf85e159a5790765ef76e941868311460bc30abcfaf2008f77af289c01 |