Skip to main content Skip to complementary content

Setting up Jolokia

You can run Spring Boot 2 microservices and metrics.

Before you begin

  • You have created a custom application.properties file allowing HTTPS connections.
  • You have renamed and saved it in a directory that the Talend Remote Engine can access.

Procedure

  1. Open the custom properties file.
  2. Add the following command lines:
    management.security.enabled=false
    cxf.springboot.jmxEnabled=true
    management.endpoints.web.exposure.include=*,jolokia
    management.endpoints.web.base-path=/
    management.endpoints.web.path-mapping.jolokia=jolokia
  3. Save the file.
  4. Open <RemoteEngineInstallationDirectory>/etc/org.talend.ipaas.rt.dsrunner.metrics.collector.cfg.
  5. Add the following command lines:
    # Jolokia URL for TLS enabled microservices. Must contain string {ms.port}
    ms.metric.collection.jolokia.url=https://localhost:{ms.port}/jolokia
    # Jolokia configuration for basic authentication
    ms.metric.collection.jolokia.username=user_name
    ms.metric.collection.jolokia.password=password
    Information noteImportant: The user name and password must be the same as defined for the basic authentication.
  6. Save the file.

What to do next

Deploy your custom application.properties file.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!