pm2-graphite
PM2 graphite sender module to send aggregated metrics. If you send messages from cluster of PM2, pm2-graphite will aggregate and send them to graphite server.
Usage
Installation
$ pm2 install pm2-graphite$ pm2 set pm2-graphite:interval 30000 # Default: 10000(ms) # with configurtaion file $ pm2 set pm2-graphite:path /absolute/path/of/the/configuration/file# with pm2 configurtaion $ pm2 set pm2-graphite:host my.graphite.host.com #target graphite host $ pm2 set pm2-graphite:port 2003 #target graphite port
Configuration File Format
app.json
)
PM2 Application Configuration (For now, PM2-Graphite Only Support cluster mode.
Send message from cluster to pm2-graphite
const metrics = 'app_name.$id.metricsName': metricsValue // String `$id` will replaced to app id of PM2. (Only first appeared string) 'app_name.$id.requestCounts': 10000 // Example;processsend && process;
Metrics which would be sent to graphite
Monyt
If you use Monyt with its ProcessSender, you could make metrics to send easily.