Skip to content

Monitoring

Klervi edited this page Jul 3, 2019 · 1 revision


Monitoring

In order to improve your Chatbot's business value and reliability, you should monitor it over time.

Here are some examples of aspects you would want to monitor:

  • Business KPIs
  • NLP reliability
  • Servers statuses

Some metrics are available on online services such as:

  • Cloud IaaS (Azure, AWS, Google)
  • NLP services
  • Keymetrics

For business monitoring, you can log and monitor your own metrics by integrating into your flow nodes provided by the Framework. They will log events into the following:

  • Facebook Analytics
  • Logstach
  • Azure App Insight
  • Local log File

Keymetrics

Keymetrics is an online monitoring system built on top of PM2, an advanced process manager designed for Node.js applications. It provides a real-time dashboard you can use to monitor your ChatBot Server.

Default metrics are CPU usage, Memory usage, git status, error count and http latency. You can add your own metrics through code (see docs).

To link your server to keymetrics, run:

pm2 link [private_key] [public_key]
Clone this wiki locally