Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/transferwise/cloudflare-prometheus-exporter
Prometheus exporter powered by Cloudflare GraphQL API.
https://github.com/transferwise/cloudflare-prometheus-exporter
Last synced: 2 months ago
JSON representation
Prometheus exporter powered by Cloudflare GraphQL API.
- Host: GitHub
- URL: https://github.com/transferwise/cloudflare-prometheus-exporter
- Owner: transferwise
- License: other
- Created: 2021-08-06T10:25:25.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T04:29:48.000Z (5 months ago)
- Last Synced: 2024-10-07T11:14:00.077Z (3 months ago)
- Language: Python
- Size: 1.91 MB
- Stars: 10
- Watchers: 7
- Forks: 6
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# Prometheus Cloudflare Exporter
Prometheus exporter powered by Cloudflare GraphQL API.
## 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_TAGOptional environment variables:
* EXPORTER_PORTRequired 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