Health check endpoint
Many load balancers such as AWS ALB check for an application to be live through an HTTP request, looking for a 200 status code. Applications often have a specific endpoint to indicate the web server is running, which doesn't take significant resources to respond to.
Using the main UI works, but it might cause it to re-render the home page over and over. And if you have authentication required, you'll need to use /auth/login
as the route.
I looked at using /api/version
but it seems to require authentication.
The proposal is to add a simple unauthenticated flask route like /api/health
that just returns a 200 status code if flask is running. It could optionally return information about the status of components of Meltano, e.g. Airflow, but this isn't required for solving the load balancer health check problem.
I can knock this out today if it's something y'all want to support!