Skip to content

garo/node-mongodb-wire-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-mongodb-wire-analyzer

MongoDB wire sniffer with optional statsd/graphite output for statistics

This program used libpcap to intercept all mongodb commands, parses the mongodb binary wire protocol and outputs the queries to stdout and/or sends statistic counters to statsd/graphite.

Remember to install required npm packages by commanding "npm install" before running the analyzer.

Usage: node ./analyze.js --interface Optional arguments:

--stdout
	Print query data to stdout (in ugly json)

--filter <tcpdump filter>
	Default filter string is "dst port 27017"

--statsd <host>
	Sends update/insert/query statistics to statsd/graphite server.

--statsd-port <port>
	Sets statsd port. default port is 8125.

--statsd-prefix <prefix name>
	Prefix for statsd. Default prefix is "mongodb.wirestats"

Issues, feedback etc at https://github.com/garo/node-mongodb-wire-analyzer

About

MongoDB wire sniffer with optional statsd/graphite output for statistics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published