GraphHopper.com | Forum | GitHub | Maps | Blog

Invoke health check via HTTP


#1

Hi,

I can’t seem to figure out how to invoke the Graphhopper health check via HTTP.
From the code I can see that health checks are registered in GraphHopperBundle.java and according to ther dropwizard documentation, I should be able to invoke it via GET /healthcheck on the admin port. I tried it on the default port 11111 while importing a map but it seems that this port is not available at that time.

Thanks for any pointers.


#2

See the config: https://github.com/graphhopper/graphhopper/blob/master/config-example.yml#L150

Did you try the admin port at 8990? (Note, it binds to localhost)


#3

Ok but in 0.10.1 there is only a config-example.properties and no admin port is specified. How can I configure it there?


#4

In 0.10.x there is no dropwizard … it was recently migrated to dropwizard. In older versions you could use a small route as health check