Disable Analytics on Client masters

Issue

  • You want to disable all Analytics related reporting on your CloudBees Jenkins Operations Center and all Client masters

Environment

  • CloudBees Jenkins Operations Center
  • CloudBees Jenkins Analytics

Resolution

In CloudBees Jenkins Operations Center

1 . In the CJOC, for each client Master, click on Configure:

Click on Configure Client Master

2 . Disable Analytics reporting for each of them:

Disable Analytics on Client Master

3 . Go to https://<CJOC_URL>/configureAnalytics/ and disable analytics:

Configure Analytics

4 . Then go to Manage Jenkins -> Script Console, and run the following script to disable all of the Analytics related plugins in your CloudBees Jenkins Operations Center:

def jenkins = Jenkins.getInstance();
def plugins = jenkins.getPluginManager().getPlugins().each{ plugin ->
    if (plugin.isEnabled()) {
        if (plugin.getShortName().startsWith("operations-center-analytics") ||
            plugin.getShortName() == "pse-config-info" ||
            plugin.getShortName() == "pse-analytics-dashboards" ||
            plugin.getShortName() == "operations-center-elasticsearch-provider" ||
            plugin.getShortName() == "operations-center-embedded-elasticsearch"
           ) {
          plugin.disable()
          println "Disabling " + plugin.getShortName()
        }
    }
}

5 . Restart your CloudBees Jenkins Operations Center, so the plugins will be disabled after the restart:

analytics plugins disabled

6 . You can feel free to uninstall the disabled plugins, or leave them in a disabled state.

In each of the Client masters

7 . On each master, go to Manage Jenkins -> Manage plugins, and disable (or uninstall) the Operations Center Analytics Reporter Plugin and Operations Center Analytics Configuration plugins:

analytics plugins disabled on master

8 . Restart the master, and if you would like, you can choose to uninstall the plugins, or you can leave them as disabled until you are ready to uninstall them.

References

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.