Configure Jolokia

You can customize your Jolokia security access policy and metrics.conf settings. You can also use these steps to disable the /metrics/v2/ endpoints.

  1. To change the security access policy:
    1. Create a jolokia-access.xml file at the following location:
      /etc/puppetlabs/orchestration-services/jolokia-access.xml
    2. Populate the file contents according to your desired Jolokia access policy (as described in the security chapter of the Jolokia documentation), and uncomment the following parameter:
      metrics.metrics-webservice.jolokia.servlet-init-params.policyLocation
    3. Save the file and restart the Puppet Server service.
  2. For additional configuration options, refer to the metrics.metrics-webservice.jolokia.servlet-init-params table in the metrics.conf file located at:
    /etc/puppetlabs/orchestration-services/conf.d/metrics.conf

    Jolokia's Servlet init parameters documentation explains the various options available in this table.

    To disable the /metrics/v2/ endpoints, open the metrics.conf file and set the metrics.metrics-webservice.jolokia.enabled parameter to false.