Integrating Keymetrics with 3rd party services

Slack integration

The Slack integration allows you to receive exceptions and event notifications straight into a selected Slack channel.

First you need to get the Slack URL and to setup an incoming Webhook. More details on how to set this up can be found here: or

Then go to the Notifications page of your bucket:

slack integration

Insert the webhook into the Slack integration textfield and click on the checkbox active. Then click on update.

You will receive a notification into your configured slack channel confirming that it has been configured.

Custom integration

You can also set a custom webhook that will simply POST data to any URL when you receive a notifications. To do so you will need to setup a http server that will listen for calls from Keymetrics, then you will just have to insert the URL into Keymetrics interface:

webhook integration

I just setup a URL (don’t hesitate to use our own to test the different functionalities, it’s free!). This will log all http requests that have been made to this URL. Example of an error that has been thrown:

         "message":"Bad argument",
         "stack":"TypeError: Bad argument\n    at TypeError (native)\n    at ChildProcess.spawn (internal/child_process.js:274:26)\n    at exports.spawn (child_process.js:362:9)\n    at Object.exports.execFile (child_process.js:151:15)\n    at exports.exec (child_process.js:111:18)\n    at /home/node/pm2-elasticsearch/lib/actions.js:25:5\n    at process.<anonymous> (/home/node/pm2-elasticsearch/node_modules/pmx/lib/actions.js:64:14)\n    at emitTwo (events.js:92:20)\n    at process.emit (events.js:172:7)\n    at handleMessage (internal/child_process.js:695:10)"

This will let you easily setup a little express server that can receive webhooks, automatically send SMS or use any integration you want.