Instrumental Node.js Agent
Instrumental is an application monitoring platform built for developers who want a better understanding of their production software. Powerful tools, like the Instrumental Query Language, combined with an exploration-focused interface allow you to get real answers to complex questions, in real-time.
This agent supports custom metric monitoring for Node.js applications. It provides high-data reliability at high scale, without ever blocking your process or causing an exception.
Installation
npm install instrumental-agent
Package details on npmjs.com
Usage
You will need to set the API token. API tokens can be found in the project tokens documentation or in your user settings page. Use the 'enabled' flag to control if the agent actually reports. This is useful for not reporting in dev/test/staging/etc. environments.
Configuration
var I = ;I;
increment
I;
gauge
I;
notice
I;
Special (dis)connection handling
If you need to control the point at which the Agent disconnects from the Instrumental metric collectors, you can manually call disconnect()
.
var I = ;I;/* do some work and record metrics */I;
Contributing
Make a PR! Say roughly what you've changed, why you did so, and any ancillary data you have like gotchas, issues you suspect, awesomeness, etc.
Run the Tests and other Helpers
> npm install
> npm test # this should be all green
> npm run coverage # this should probably be like… as good as when you started
> npm run jshint # ??? I guess no errors? not sure what this does
Releasing
- Sign up for npmjs.com
- Pull latest master
- Merge feature branch(es) into master
npm test
- Increment version in repo
package.json
- Update CHANGELOG.md
- Commit "Release version vX.Y.Z"
- Push to GitHub
npm publish
- Tag version:
git tag 'vX.Y.Z' && git push --tags
- Verify update on https://www.npmjs.com/package/instrumental-agent
- Refresh documentation on instrumentalapp.com
Cool Contributors 😎
- @spacetc62
- @gmcnaught
- @janxious
- @jqr
- @jason-o-matic
- @JamesPaden
- @pmidge
- @acanimal
- @alecgorge