Skip to content

ChartMogul - Geckoboard integration written in Node.js

Notifications You must be signed in to change notification settings

bilbof/chartmogul-geckoboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chartmogul-geckoboard

A simple ChartMogul - Geckoboard integration written in Node.js

Instructions for running locally

To modify the integration locally and see the changes reflected immediately within Geckoboard, follow these instructions.

Prerequisites

  • Node.js

Run locally

  1. Clone this repository and cd into it

    git clone git@github.com:bilbof/chartmogul-geckoboard
    cd chartmogul-geckoboard
  2. Add your ChartMogul and Geckoboard API keys to app.js

Open app.js, and add your chartmogulApiToken & chartmogulSecretKey found at https://app.chartmogul.com/#admin/api (admin permissions required).

Next, add your geckoKey. You can find this at https://<your_geckoboard_subdomain>.geckoboard.com/account/details.

  1. Create two custom widgets in your Geckoboard

a) Add a custom line chart to your Geckoboard dashboard

Important: Select 'Push' as the Method.

Add the `widgetKey` provided to line 25 of app.js. Make any additional changes to the chart settings from line 19 in app.js.
var lineGraph = {
	enabled: true, // turn this on or off with (true) or (false).
	metric: 'mrr', // see the Metrics API documentation for more options: https://github.com/chartmogul/metrics-api
	startDate: '2015-01-01', // start date of the line graph
	endDate: '2015-12-31', // end date of the line graph
	interval: 'month', // available options: day, week, month, quarter, year (depends on the metric, see the Metrics API documentation)
	widgetKey: 'your_geckoboard_line_graph_widget_key'
}

b) Add a custom Geck-O-Meter to your Geckoboard dashboard Important: Select 'Push' as the Method.

Add the `widgetKey` provided to line 35 of app.js. Make any additional changes to the Geck-O-Meter settings from line 29 in app.js.
  var geckoMeter = {
	enabled: true, // turn this on or off with (true) or (false).
	metric: 'mrr', // see the Metrics API documentation for more options: https://github.com/chartmogul/metrics-api
	startDate: '2015-01-01',
	endDate: '2015-12-31', // use the current date here.
	interval: 'month',
	widgetKey: 'your_geckoboard_line_graph_widget_key',
	min: '5000', // the minimum value of your GeckoMeter
	max: '15000' // the maximum value of your GeckoMeter
}
  1. Run app.js.

    node app.js

Further instructions can be found in the Geckoboard documentation and the ChartMogul Metrics API documentation.

About

ChartMogul - Geckoboard integration written in Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published