13.2 Configuring Statistics-Collection Settings

When you create an Oracle Traffic Director configuration, statistics collection is enabled by default, with five seconds as the update interval. You can disable, enable, and configure statistics collection by using either the administration console or the CLI.

Note:

The CLI examples in this section are shown in shell mode (tadm>). For information about invoking the CLI shell, see Section 2.3.1, "Accessing the Command-Line Interface."

Configuring Statistics-Collection Settings Using the Administration Console

To configure statistics-collection settings by using the administration console, do the following:

  1. Log in to the administration console, as described in Section 2.3.2, "Accessing the Administration Console."

  2. Click the Configurations button that is situated at the upper left corner of the page.

    A list of the available configurations is displayed.

  3. Select the configuration for which you want to configure statistics-collection settings.

  4. In the navigation pane, expand Advanced Settings, and select Monitoring.

    The Monitoring Settings page is displayed.

  5. Go to the Statistics Collection section of the page.

  6. Specify the parameters that you want to change.

    Note:

    When deciding the statistics-collection interval, remember that frequent collection of statistics affects performance.

    On-screen help and prompts are provided for all of the parameters.

    When you change the value in a field or tab out of a text field that you changed, the Save button near the upper right corner of the page is enabled.

    At any time, you can discard the changes by clicking the Reset button.

  7. After making the required changes, click Save.

    • A message, confirming that the updated configuration was saved, is displayed in the Console Messages pane.

    • In addition, the Deployment Pending message is displayed at the top of the main pane. You can either deploy the updated configuration immediately by clicking Deploy Changes, or you can do so later after making further changes as described in Section 4.3, "Deploying a Configuration."

Configuring Statistics-Collection Settings Using the CLI

  • To view the current statistics-collection properties, run the get-stats-prop command, as shown in the following example:

    tadm> get-stats-prop --config=soa
    enabled=true
    interval=15
    profiling=true
    
  • To configure statistics-collection properties, run the set-stats-prop command.

    For example, the following command changes the interval at which statistics are updated for the configuration soa to 10 seconds.

    tadm> set-stats-prop --config=soa interval=10OTD-70201 Command 'set-stats-prop' ran successfully.
    

    For the updated configuration to take effect, you should deploy it to the Oracle Traffic Director instances by using the deploy-config command.

    For more information about get-stats-prop and set-stats-prop, see the Oracle Traffic Director Command-Line Reference or run the commands with the --help option.