logentries-dtrace

A wrapper to emit dtrace results to logentries

npm install logentries-dtrace
2 downloads in the last week
4 downloads in the last month

logentries-dtrace

Prerequisites

gmake

# pkgin in gmake

node-gyp

npm install node-gyp -g

Install

npm install logentries-dtrace

Usage

var logdtrace = require("logentries-dtrace")('logentries-logkey', locationofdtracefile, interval)

See examples folder for more details

Running The Examples

Install the simple http server to test monitoring

# git clone https://github.com/No9/logentries-dtrace.git
# cd ../logentries-dtrace/examples
# svcadm disable apache
# svcadm disable nginx
# svccfg import http-service-manifest.xml 
# svcadm enable logentries-dtrace-http-service

You should now be able to open the a default website on your server http://YOUR.IP.ADDRESS.HERE/

Now configure DTrace

# wget https://raw.github.com/joyent/node/v0.8.11-release/src/node.d --no-check-certificate

And mv the file to /home/admin/dtrace

# mkdir /home/admin/dtrace
# mv node.d /home/admin/dtrace/node.d

Edit the logkey in the .js file you wish to run. You should now be able to run D-Trace Against Log Entries

# node singlelatency.js

And then from a machine with apache benchmark installed.

# ab -n10000 http://YOUR.IP.ADDRESS.HERE
npm loves you