Unconfiguring the Ruby data collector for IBM Cloud applications

If you do not need to monitor your Ruby environment or if you want to upgrade the Ruby data collector, you must first unconfigure previous settings for the Ruby data collector.

Procedure

  1. Go to the application root folder.
  2. Remove the following lines from the Gemfile in the home folder of your Ruby application:
    gem 'logger',  '>= 1.2.8'
    source 'https://maagemserver.ng.bluemix.net/' do
      gem 'ibm_resource_monitor'
      gem 'stacktracer'
    end
  3. Run the bundle lock command.
  4. From the application home directory, run the following command to re-push the application to IBM® Cloud for the changes to take effect.
    cf push

Results

You have successfully unconfigured the Ruby data collector.

What to do next

After you unconfigure the data collector, the Cloud APM console continues to display the data collector in any applications that you added the data collector to. The Cloud APM console will show that no data is available for the application and will not indicate that the data collector is offline. For information about how to remove the data collector from applications and from resource groups, see Removing data collectors from Cloud APM console.