I am running corda nodes using docker and I am trying to expose JMX metrics using Jolokia. My node.conf is the following:
devMode = true
jarDirs = ["/opt/corda"]
p2pAddress = "bankb:10002"
jmxMonitoringHttpPort = 10006
rpcSettings {
useSsl = false
address = "bankb:10003"
adminAddress = "bankb:10005"
}
myLegalName = "O=BankB, L=London, C=GB"
keyStorePassword = "cordacadevpass"
trustStorePassword = "trustpass"
rpcUsers=[
{
username=corda
password=corda_initial_password
permissions=[
ALL
]
}
]
And I can see that Jolokia is starting, in the logs:
bankb | I> Using policy access restrictor classpath:/jolokia-access.xml
bankb | Jolokia: Agent started with URL http://127.0.0.1:10006/jolokia/
But I can't connect using the browser to the Jolokia endpoint and I believe it is because it is only binding to the internal network interface. How can I define the host that Jolokia will bind to if the corda config does not expose a why to configure the binding network interface ?