Hi,
In your company our Microservices runs within the clustering engine Docker-Swarm.
Each Service can be scaled up and down.
e.g.
- Host A
-- Service 1
-- Service 2
-- Service 3
- Host B
-- Service 1
-- Service 1
-- Service 5
- Host A
-- Service 1
-- Service 4
-- Service 5
So in this example above, the Service1 exists four times. It is even started twice on HostB.
Sometimes we have to monitor a single service on demand. My problem no is to connect to those service.
At first I thought that this can be used:
https://www.yourkit.com/docs/java/help/remote_profiling.jspBut even if the agent get started with the Java-Application, there is no open Port into the container for the UI to connect to. I can't publish those port outside the container, because it can get in conflict with other containers publishing the same port. So that's not really an option for the cluster.
The only way I see here is like other APM Tools do it: The UI runs and the Agent connects to it.
Is there a way to to this? Or another solution?