All dashboards

Grafana Dashboard for Cloudflare Analytics and Overview

Grafana Dashboard for Cloudflare - Pulls out all the Cloudflare Information, and Analytics from the GraphQL API.

Grafana Dashboard for Cloudflare Analytics and Overview screenshot 1
Grafana Dashboard for Cloudflare Analytics and Overview screenshot 2

Just download the latest Cloudflare script version from GitHub https://raw.githubusercontent.com/jorgedlcruz/cloudflare-grafana/master/cloudflare-analytics.sh and change the Configuration section within your details:

##
# Configurations
##
# Endpoint URL for InfluxDB
InfluxDBURL="YOURINFLUXSERVERIP" #Your InfluxDB Server, http://FQDN or https://FQDN if using SSL
InfluxDBPort="8086" #Default Port
InfluxDB="telegraf" #Default Database
InfluxDBUser="USER" #User for Database
InfluxDBPassword="PASSWORD" #Password for Database

# Endpoint URL for login action
cloudflareapikey="YOURAPIKEY"
cloudflarezone="YOURZONEID"
cloudflareemail="YOUREMAIL"

Once the changes are done, make the script executable with chmod:

chmod +x cloudflare-analytics.sh

The output of the command should be something like the next, without errors:

HTTP/1.1 204 No Content
Content-Type: application/json
Request-Id: b084ba16-8622-11ea-8dbc-0050569002da
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.7.10
X-Request-Id: b084ba16-8622-11ea-8dbc-0050569002da
Date: Fri, 24 Apr 2020 11:56:53 GMT

If so, please now add this script to your crontab, like for example everyday at 9am:

0 9 * * * /home/oper/cloudflare-analytics.sh >> /var/log/cloudflare.log 2>&1

Then download or import this Dashboard to your Grafana, and you should see something similar to the next: alt tag

Revisions
RevisionDescriptionCreated
Cloudflare

Cloudflare

by Grafana Labs
Grafana Labs solution

Easily monitor analytics from Cloudflare, which provides content delivery, DDoS mitigation, internet security, and other related servicese, with Grafana Cloud's out-of-the-box monitoring solution.

Learn more

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies