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
-
Open the custom properties file.
-
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
-
Save the file.
-
Open <RemoteEngineInstallationDirectory>/etc/org.talend.ipaas.rt.dsrunner.metrics.collector.cfg.
-
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
Important: The user name and password must be the same as defined for
the basic authentication.
-
Save the file.
What to do next
Deploy your custom
application.properties
file.