keymetrics / pm2-io-apm

PM2.io APM for Node.JS
Apache License 2.0
147 stars 40 forks source link

any way to send custom event data? #222

Closed chrisli30 closed 5 years ago

chrisli30 commented 5 years ago

I see that pm2/io used to have .notify() to send custom data. I need to send hourly report in a JSON object to app.pm2.io so it can pass the data to connected slack channel. Is there any way to achieve that?

Thanks!

vmarchaud commented 5 years ago

Hey,

The notify method wasn't designed to send arbitrary object, it was only for errors. We don't have any feature that could do the trick for you sorry. But i believe you could just post the message to the slack webhook within your app using few lines of code.

chrisli30 commented 5 years ago

Okay, thanks Valentin