Monitoring

Dashboard

Grape comes with a builtin dashboard where the main functionality can be monitored.

You can also integrate Grape monitoring into your own monitoring by using a set of APIs described bellow. We used Token Authentication as an example but we also support Base Token and Session Authentication. Please, check Authentication for further information on how to authenticate with Grape

The first thing you need to to is to get all available services:

curl -X GET \
  http://chatgrape.com/debug/monitor/list \
  -H 'Authorization: Token 0f3acc5a53b7fdfffc46dd1f86ce525438a11915' \
  -H 'Content-Type: application/json'

The response will contain a list of available components to be monitored:

[
    "server-status",
    "user-sessions",
    "databases",
    "celery",
    "system",
    "configuration",
    "push_notifications",
    "email",
    "internet-access",
    "internet-access-external",
    "certificates",
    "ad",
    "exchange",
    "active-calls"
]

Then, you can retrieve data for the desired component by simply calling the following API:

curl -X GET \
  http://chatgrape.com/debug/monitor/system \
  -H 'Authorization: Token 0f3acc5a53b7fdfffc46dd1f86ce525438a11915' \
  -H 'Content-Type: application/json'

Note that the system came from the list of available components.

Note

Not all components are available for all customers. It depends on how the server is configured.

AppDynamics

AppDynamics monitoring can be easily activated by setting these environment variables:

ADYNAMICS_ENABLE
ADYNAMICS_ANDROID_KEY
ADYNAMICS_WEB_KEY
ADYNAMICS_WEB_ADRUM_HOST
ADYNAMICS_WEB_BEACON_HOST

ADYNAMICS_AGENT_APP
ADYNAMICS_CONTROLLER_HOST
ADYNAMICS_CONTROLLER_PORT
ADYNAMICS_CONTROLLER_SSL
ADYNAMICS_CONTROLLER_ACCOUNT
ADYNAMICS_CONTROLLER_ACCESSKEY

ADYNAMICS_RR_TIER
ADYNAMICS_RR_NODE
ADYNAMICSWS_TIER
ADYNAMICSWS_NODE
ADYNAMICSBEAT_TIER
ADYNAMICSBEAT_NODE
ADYNAMICSWORKER_DEFAULT_TIER
ADYNAMICSWORKER_DEFAULT_NODE
ADYNAMICSWORKER_NOTIFICATIONS_TIER
ADYNAMICSWORKER_NOTIFICATIONS_NODE
ADYNAMICSWORKER_EMAILS_TIER
ADYNAMICSWORKER_EMAILS_NODE

# path to configuration files
ADYNAMICS_CONFIG_CELERY
ADYNAMICS_CONFIG_WS