Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (26 loc) · 983 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 983 Bytes

graphite-promise

NPM version Downloads Build Status

Status

Experimental/Unstable

Usage

var graphite = require('graphite-promise'),
client = graphite.createClient(<graphite-url> e.g 'plaintext://127.0.0.1:2003/' 
|| {hostedGraphiteKey: 'a key', url: 'graphite url'});
client.write(metric, timestamp)
  .then(function(){})
  .catch(function(reason){})
  .finally(function(){
    client.end();
  });

Example

client.write({home:{indoor:{temp:21.2}}}, 1427727486200);

This project began as a fork of https://github.com/felixge/node-graphite