Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Cloudflare

Published and supported by Mobile Nations


Description

Cloudflare Plugin for Newrelic Fetches metrics from Cloudflare and aggregates the data, providing one dashboard that covers multiple Cloudflare sites. The code currently only supports Cloudflare Enterprise plans, as that is the only plan level that offers per-minute reporting. Can also collect performance data from local RailGun servers.

  • Total Bandwidth Mbps (Total, Cached, Uncached, Railgun)
  • Total Requests/s (Total, Cached, Uncached)
  • Bandwidth and Requests by Site
  • Cache Ratio
  • Origin bandwidth and requests
  • Pageviews and Googlebot request
  • Threats
  • Origin vs Railgun Bandwidth
  • Railgun Compression
  • Railgun WAN Mpbs

Requirements

  • Node.JS/NPM
  • Cloudflare Enterprise account

Installation

  • Install NodeJs and NPM Download
  • Download plugin from GitHub and extract
  • Inside the plugin directory, install the required npm modules (npm install async cloudflare4)

Configure

  • cfConfig

    • API Key/Email
  • rgConfig

    • If you use railgun, enable stats.listen in railgun.conf and set stats.interval = 1
    • Specify each railgun server in rgConfig
  • newRelicConfig

    • Newrelic license key and host name of the server this script will run it.

We use PM2 as a node process manager, which enables node.js script to run forever, gather logs, and to run at boot. i npm install pm2@latest -g
pm2 start xen_monitor.js

pm2 stop 0
pm2 restart 0
pm2 reload 0

To start at boot: pm2 startup, followed by pm2 save


License

As-Is. Use at your own risk etc.


Support

Report issues on GitHub Issues tracker


The Cloudflare plugin extends the power of New Relic's monitoring capabilities.


Get This Plugin

Already have a New Relic account? Log in and begin using this plugin.

If you don't have a New Relic account, follow these three simple steps:

How To Install A Plugin

Installing a plugin is simple and fast.

Installing
a Plugin
  1. Step One

    Sign in to your New Relic account

  2. Step Two

    Select and install plugin

  3. Step Three

    Start seeing data

That’s it. You’re done. Simple.

Sign Up for New Relic

Back to top icon