Enable and disable web service monitoring

You can enable or disable the monitoring of web services on the GAS.

A web service or session needs to be enabled for monitoring. In this task you use gasadmin monitoring update commands to enable and disable monitoring.

Enable monitoring

You can enable monitoring by session id or service name using the gasadmin monitoring update --enable command option.
  • Enable monitoring on a session.

    gasadmin monitoring update --enable --session d98290172c8f7c0d861db329f1ce6597

    The configuration takes effect immediately.

  • Enable monitoring on a service.
    gasadmin monitoring update --enable --service demo/Calculator
    Important:

    While you typically include both the group and the service name using the format "--service group-name/service-name", you must not include the group when the service is in the _default services group. For services in the _default group, simply provide the service name using the format "--service service-name".

    You can enable monitoring on a service even if the service (xcf) has not yet being deployed. When this occurs, the GAS saves the configuration to load once the service is available and it outputs a message to notify you like this:
    Update monitoring configuration for service :demo/Calculator
    Warning: not found, save configuration for future load.

Disable monitoring

You can disable monitoring by session id or service name using the gasadmin monitoring update --disable command option.
  • Disable monitoring on a session.

    gasadmin monitoring update --disable --session d98290172c8f7c0d861db329f1ce6597

    The configuration takes effect immediately.

  • Disable monitoring on a service.

    gasadmin monitoring update --disable --service demo/Calculator

    You can disable monitoring on a service even if it is not running. The configuration takes effect the next time the service is started.