komoot / photon

an open source geocoder for openstreetmap data
Apache License 2.0
1.83k stars 278 forks source link

Add healthcheck endpoint #711

Closed otbutz closed 4 months ago

otbutz commented 1 year ago

It would be nice to have a /health or /status endpoint for monitoring checks.

lonvia commented 1 year ago

I'd be happy to take a PR for this. Bonus points for getting the last update date from Nominatim during import/updates, so /status can report that too. It can go into the index for global properties. So no need for a database schema change.