tdmetrics
v0.0.3
Published
tdmetrics nodejs library
Downloads
6
Readme
#TDMetrics - NodeJS Wrapper
NodeJS module to send metrics to TotenDev's Metrics
Requirements
Installation
Install with npm
some dependencies
$ npm install
Configuration
All configuration need to be done in package.json
file.
metrics.host
- Metrics server host . REQUIRED IF ENABLEDmetrics.port
- Metrics server port . REQUIRED IF ENABLEDmetrics.path
- Metrics server path. (Use if you know what you doing) OPTIONALmetrics.projectID
-TDMetrics
ProjectID parameter. REQUIRED IF ENABLEDmetrics.auth
-TDMetrics
authentication. REQUIRED IF ENABLED
##Usage
var Metrics = require('./TDMetrics.js');
//metricString,statusCode,typeString,placeString,callback
Metrics("Status 202","202","Info","/index.html",function (resp,ok) {
if (ok) { console.log("Success"); }
else { console.log("Error: " + resp); }
});
If you don't know what this parameters are please read How it works
.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
##License