Instrumental for Node
A node.js agent for instrumentalapp.com. It supports the full collector protocol.
Installation
npm install instrumental
Usage
The only settings that should need changing are api_key
and perhaps max_queue_size
if you have very frequent/infrequent data.
I = require('instrumental')
I.setup({
api_key : "your_api_key",
hostname : 'instrumentalapp.com',
port : 8000,
timeout : 10000,
max_queue_size : 100,
}, function (is_api_key_valid) {
});
I.increment('metric.name', );
I.gauge('metric.name', 82.12, );
I.gauge_absolute('metric.name', 12.12, );
I.notice('This is a notice', );
I.flush();