Contact Free trial Login

Configure and Enable Anypoint Monitoring for Mule Apps (CloudHub)

To start monitoring Mule apps that are managed in CloudHub, you must deploy them to a supported version of Mule runtime engine and set the runtime version in your Mule app.

Supported Versions of Mule Deployed to CloudHub

Anypoint Monitoring with Mule runtime engine images receive patch updates as soon as they are available. Because Anypoint Monitoring -AM images are no longer receiving patch updates, switch to a Mule runtime engine (non-AM) image if your production environment requires a Mule runtime engine patch.

Metrics and logs are supported in the following Mule versions:

  • 4.x.x

  • 3.9.x

  • 3.8.7

Metrics are used by graphs and other charts within Dashboards.

Logs are available only if you have a Titanium subscription to Anypoint Platform.

Set the Runtime Version

To set or change the runtime version for your Mule app:

  • For new and existing Mule apps:

    1. Go to Settings in Runtime Manager for that app.

    2. Choose the new runtime from the Runtime Version selector.

      If you do not see a supported runtime version in the drop-down menu, scroll down to Show Old Patch Releases, click, and select a runtime for your app.

  • For Anypoint CLI deployments:

    If you are using the Anypoint CLI to deploy your Mule app (for example, through a build pipeline), you need to include the --runtime parameter with an appropriate value, for example:

    anypoint-cli --username="..." --password="..."
     --organization="Mythical, Inc"
     --environment="Production" runtime-mgr cloudhub-application deploy
     --runtime="3.9.4" helloworld ~/demoproj2.zip
  • For Maven deployments:

    If you are using Maven for deployment, you must modify the <muleVersion> tag in the pom.xml file. For example, you can change <muleVersion>3.9.3</muleVersion> to <muleVersion>3.9.4</muleVersion>).

Enable Automatic Monitoring for Apps That You Plan to Deploy to Cloudhub

If you want your Mule apps to be monitored by default when you deploy them to CloudHub, configure this feature in Anypoint Monitoring before you deploy your apps. If you have a Titanium subscription to Anypoint Platform, this feature is enabled by default.

To configure automatic monitoring for each Mule app as it is deployed to CloudHub:

  1. Sign in to Anypoint Platform and navigate to Anypoint Monitoring.

  2. In the navigation menu, click Settings:

    monitoring settings screen
  3. Select CloudHub.

  4. Click Enable Anypoint Monitoring for newly deployed CloudHub applications.

If you deployed Mule apps to CloudHub before you enabled this feature, you must enable monitoring for those apps manually. This feature does not retroactively enable monitoring for previously deployed apps.

Enable Monitoring for Apps Previously Deployed to CloudHub

You can enable monitoring for Mule apps running on non-AM versions of Mule in the Anypoint Monitoring Settings page, the application’s Settings page, or by using the Anypoint CLI for continuous integration and delivery (CI/CD).

For supported versions of Mule, see Configure Anypoint Monitoring for Mule Apps.

Enable Monitoring Using the UI

You can use the Settings page in Anypoint Monitoring to enable or disable apps deployed to CloudHub and running on Mule.

  1. Sign in to Anypoint Platform and navigate to Anypoint Monitoring.

  2. In the navigation menu, click Settings:

    monitoring settings screen
  3. Select CloudHub.

  4. In the Environment list, select the environment where the application is running.
    A list of running applications is shown for the selected environment.
    You can search for a specific application using the List of resources search box.

  5. Next to the application, click Enable to enable monitoring for the application.

Enable Monitoring in CloudHub Settings

You can enable monitoring for Mule apps running on supported versions of Mule by adding a property to an application deployed to CloudHub.

  1. Sign in to Anypoint Platform and navigate to Runtime Manager.

  2. In the list of applications, select the application for which to enable monitoring.
    The application must be deployed to CloudHub and running on a supported version of Mule.

  3. In the navigation menu, click Settings.

  4. Click Properties, and add the following property:
    anypoint.platform.config.analytics.agent.enabled=true

    enable monitoring cloudhub

    To disable monitoring, change the value to false.

  5. Click Apply Changes.

Enable Monitoring for CI/CD Deployments

Use the Anypoint CLI and set the following property during your CI/CD deployment: anypoint.platform.config.analytics.agent.enabled=true

Performance Impact

Enabling Anypoint Monitoring can impact CPU utilization and memory utilization, which varies depending upon specific application behavior, such as inbound and outbound call rates. For a typical application, expected CPU utilization impact is less than 5%. For an accurate impact analysis specific to your application, test and estimate any performance impact in your pre-production environment prior to enabling monitoring in your production environment.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub