0

My team and I are struggling to figure out a way to monitoring every instances of a dockerized service managed in a rancher.

Our goal

We would like to monitor every instance of our service in SBA in a readable manner (ex: having the container name as a service ID).

What we have

We are currently able to monitor every instance of a service. But those services are displayed with IP addresses.

http://10.42.41.109:8180/actuator/health

What we tried

We removed the prefer-ip property played with the following to avoid having the container name as domain in the URL:

spring.boot.admin.client.instance.management-url
spring.boot.admin.client.instance.health-url
spring.boot.admin.client.instance.service-url 
spring.boot.admin.client.instance.service-base-url

The last 2 did give us pretty URL, but we lost the ability to monitor each instance of a service (the last to register seems to be the one being monitored).

Sooo...

How can we retrieve health checks for each instance of a rancher managed service while keeping the monitoring human readable? Are we missing so magic option?

Thanks for the help :)

Sami Ahmed Siddiqui
  • 2,328
  • 1
  • 16
  • 29
Grégory Elhaimer
  • 2,731
  • 1
  • 16
  • 21
  • Which version of Rancher are you using? – leodotcloud Apr 23 '19 at 22:15
  • @leodotcloud v1.6.13 – Grégory Elhaimer Apr 24 '19 at 07:42
  • Did you check the healthchecks available in Rancher? https://rancher.com/docs/rancher/v1.6/en/cattle/health-checks/ Letting the infra handle the healthchecks for individual instances? – leodotcloud Apr 24 '19 at 18:33
  • Those healthcheck give information about the container itself. We need to monitor what's inside the container. – Grégory Elhaimer Apr 25 '19 at 07:15
  • You can specify the endpoint/URL of the app running inside the container which will indicate the health of the app. It's not just the container health. – leodotcloud Apr 25 '19 at 19:00
  • I do want more than healthcheck. SBA provides access to JVM state which are not exposed through healthchecks. We can't dump heap neither through this. – Grégory Elhaimer Apr 25 '19 at 22:58
  • Did you look into `rancher-metadata`? For example: `curl -H "Accept: application/json" rancher-metadata/latest/services//containers | jq .[].primary_ip` will fetch you the IP addresses of all of the containers of your service. – leodotcloud Apr 25 '19 at 23:04

0 Answers0