Calibre Metrics on a Geckoboard Dashboard
Tldr; setup guide
- Get your Geckoboard API key
- Deploy this app to Heroku
- Visit the url of the heroku app you just deployed to find the webhook url (
- For each site that you want to report metrics from, create a new webhook (Calibre→Site→Settings→Integrations) and paste in the
- You‘re done. Time to make the web fast.
- GECKOBOARD_API_KEY - The API key from your Geckoboard account
- METRIC_WHITELIST - (Optional configuration) Eg:
visually-complete,oncontentload(Full list available below).
Metrics Calibre outputs
As of writing, Calibre outputs the following metrics. From time to time, new metrics will become available and this list will be updated.
Step by step walk through
All the links and reference that you need are available at the top of this README.
Visit the Geckoboard account details page, copy your API Key.
Click this deploy button:
Name the application, something like
Paste in your Geckoboard API Key.
Optional step - Add a comma separated list of metrics that you’d like sent to Geckoboard. (Leaving this blank means that Calibre will deliver ALL of the metrics that it records to Geckoboard)
Once the app has been deployed, click the view button.
Copy the '/webhook' URL.
Go to your Calibre account.
For each site that you want to report metrics from, create a new webhook (Calibre → Site → Settings → Integrations) and paste in the
Check "Snapshot", and save the notification.
At the end of every snapshot Calibre will send the collected metrics to this app using the webhook you just set up. This app will format those metrics for Geckoboard and send it using the Geckoboard API key.
Once a snapshot has been completed, visit your Geckoboard account and click 'Add widget'.
Choose 'datasets' as the source. You should now see Calibre metrics
For timeseries charts, it can be valuable to 'split' metrics by 'Device profile'. In the screenshot example below, you’ll notice that we have two profiles "Chrome Desktop" and "iPhone 6, 3G connection".
You did it! Great work.
If you’ve set everything up, run some snapshots and there appears to be no new Calibre datasets in your Geckoboard account, try running
heroku logs --tail --app YOUR_APP_NAME_HERE to get a log from the deployed application.
If you think you’ve discovered a bug, issue or have ideas for how to improve calibre-geckoboard, please file an issue or raise a PR. (ps, We’ll send stickers and eternal