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.
- To change the security access policy:
- Create a
jolokia-access.xml
file at the following location:/etc/puppetlabs/orchestration-services/jolokia-access.xml
- 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
- Save the file and restart the Puppet Server service.
- Create a
- For additional configuration options, refer to the
metrics.metrics-webservice.jolokia.servlet-init-params
table in themetrics.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 themetrics.conf
file and set themetrics.metrics-webservice.jolokia.enabled
parameter tofalse
.