node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »


Build Status

A javascript library for generating and sending metrics logging to a heka listener.

To run the test suite use:

$ npm test

You should see all tests pass with something that looks like this ::

> heka@0.2.0 test /Users/victorng/dev/heka-node
> jasmine-node tests


Finished in 0.713 seconds
42 tests, 247 assertions, 0 failures

You can find a working HTTP echo server in the example directory. Just run make, and it will install heka from npm and start a webserver that emits heka messages for you.

$ cd example 
$ make
npm install heka
npm WARN package.json heka_node_demo@0.2.0 No file found!
npm http GET
npm http 200
npm WARN engine heka@0.3.0: wanted: {"node":">=0.10.0"} (current:
npm http GET

[...lots of packages installing editted out here ...]

heka@0.3.0 node_modules/heka
├── underscore@1.4.4
├── bytebuffer@1.3.6 (long@1.1.2)
├── protobufjs@1.0.0-b4 (ascli@0.3.0)
└── superscore@0.3.4 (request@2.21.0)
node demo.js
myapp listening at

Go to http://localhost:8000/echo/foo to start sending heka messages over UDP to localhost:5565.