1.0.6 • Published 4 years ago

process-statsd v1.0.6

Weekly downloads
18
License
Apache-2.0
Repository
github
Last release
4 years ago

use it

# install package
yarn add process-statsd

#start graphite
docker run \
 -d\
 --rm\
 --name graphite-8125\
 -p 80:80\
 -p 8125:8125/udp\
 graphiteapp/graphite-statsd
import {processStatsd} from 'process-statsd'

// send usage, heapUsed, heapTotal, rss to periodically to statsd
const config = {
  interval: 1000,
  server: 'localhost',
  port?: 8125,
  prefix: 'myProcess',

}
const stats = new processStatsd(config)

// use express middleware
const middleware = stats.lynxExpress()
app.use(middleware())

dev

# install dep
yarn

# dev mode (tsc + nodemon)
yarn dev

# build (with cleanup)
yarn build
1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago