a Python flask boomerang beacon endpoint with graphs!
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
templates
README.md
app.py
requirements.txt
stats.py

README.md

anode

A Python flask boomerang beacon endpoint with graphs!

These graphs will show you the total amount of time that users had to wait for your page to load.

anode

Make sure to install the requirements from requirements.txt

JSONStore is used to presist that data. NVD3 is used for the JavaScript Graphs.

Then you need to make sure that all the pages you want to phone home have this JavaScript

The beacon_url needs to be the address of the Flask server

  <script src="https://raw.github.com/yahoo/boomerang/master/boomerang.js" type="text/javascript"></script>
  <script>
    tplPrefix = 'ds_';
    // configure boomerang
    BOOMR.init({
      beacon_url: '{{ base_js_extra }}',
      site_domain: window.location.host,
      BW: {
        base_url : 'https://raw.github.com/yahoo/boomerang/master/images/',
        nruns: 3
      }
    });
    // start the timer
    BOOMR.plugins.RT.startTimer( tplPrefix + 'head');
  </script>

This is GPL code, this is also not ready for other people to use it.