 # Collect data from Mongo in every <interval>/2 seconds
 setInterval ->
   collect_mongo()
-, (librato.interval / 2)
+, (interval / 2)
 
 # Post to Librato in every <interval> seconds
 setInterval ->
   post_to_librato()
-, librato.interval+, interval
      load1,
      load5,
      load15,
      # Memory
      memory_used,
      # Users

    name: 'load'
    source: '15:' + node_id
    value: loadavg[2]

  # CPU usage
  cpu_usage = get_cpu_usage()
  print "CPU usage: " + cpu_usage
  cpu_total =
    name: 'cpu'
    source: node_id
    value: cpu_usage

  # Available memory
  mem_total = os.totalmem() / (1024 * 1024)
