Scrapes cloudflare analytics information (bandwidth, and requests) into an InfluxDB for use with Grafana.
- Install PHP and Composer
- Clone Repo
- Copy config.json.example => config.json
- Define your Influx database credentials & Cloudflare API settings in config.json
- Test run
php scrape.phpin your console
php scrape.phpto your crontab.
After testing that your cron is running, it is easy to add the data to a Grafana instance. Add the InfluxDB as a Grafana data source, and the cloudflare stats will now be visible in your dashboard editor.