Custom configurations for Python applications

Updated at:

On the custom settings tab, configure agent switches and the sampling policy.

Procedure

  1. Log on to the Cloud Monitor 2.0 console, and select a workspace. In the left navigation pane, choose All Features > Application Observability > Application Monitoring.

  2. On the Application List page, click the target Application Name, and then in the top navigation bar, select Application Configuration > Custom Configurations.

  3. Configure the custom settings and click Save.

Sampling settings

The sampling settings section controls the sampling policy for traces. Python applications support only fixed-rate sampling.

Set the Sampling Rate to the desired percentage. The default value is 100 for Python applications. Keep the default unless necessary, because a higher sampling rate consumes additional system resources. Click Save.

Agent switch settings

The agent switch settings section lets you enable or disable application monitoring.

Important

Changes take effect immediately without an application restart. If you pause application monitoring, the system stops monitoring your application. Proceed with caution.

Pausing application monitoring also pauses billing and can create gaps in your statistical data. Click Save or Save and Copy to Other Applications.

Copy configurations to other applications

If you need to apply the same configuration to other applications, you can copy the settings.

Copy a single configuration

  1. In the corresponding configuration section, click Save and Copy to Other Applications.

  2. If the Current settings not saved dialog box appears, click OK to save the configuration for the current application, and then click Save and Copy to Other Applications again.

  3. In the dialog box that appears, select the applications to which you want to apply the settings, and then click OK.

Copy all configurations

  1. At the bottom of the page, click Save and Copy to Other Applications.

  2. If the Current settings not saved dialog box appears, click OK to save the configuration for the current application, and then click Save and Copy to Other Applications again.

  3. In the dialog box that appears, select the applications to which you want to apply the settings, and then click OK.

Global default configuration

You can save the current configuration as the global default configuration. This configuration then applies by default when you create new applications.

  1. At the bottom of the page, click Save Current App Settings as Global Default Configuration.

  2. If the Current settings not saved dialog box appears, click OK to save the configuration for the current application, and then click Save Current App Settings as Global Default Configuration again.

  3. In the dialog box that appears, click Confirm.