Skip to content

Instantly share code, notes, and snippets.

@david-martin
Created March 27, 2017 09:09
Show Gist options
  • Save david-martin/487176633bf176afd6c6ded2a60f2219 to your computer and use it in GitHub Desktop.
Save david-martin/487176633bf176afd6c6ded2a60f2219 to your computer and use it in GitHub Desktop.
Enable Sync metrics to influxdb
fh.events.on('sync:ready', function(){
var syncConfig = {
metricsInfluxdbHost: process.env.METRICS_HOST,
metricsInfluxdbPort: parseInt(process.env.METRICS_PORT)
};
fh.sync.setConfig(syncConfig);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment