Enable/disable 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.
Important: Default group services:
Normally, you enable service monitoring with the --service option by specifying the group and the service name. For example group/mySevice. However, the group must not be set when the service is in the "_default" services group:
gasadmin monitoring update --enable --level HIGH --service myService

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

    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.