Skip to content

Health Check

Database

This health check endpoint verifies connectivity to the insightdb database.

By default, the health check executes sql query:

SELECT 1

The query can be adapted by providing the environment variable INSIGHT_HEALTH_CHECK_DB_SQL.

Endpoints

Environment URL
Internal (within application server) http://localhost:8080/insight-gateway/rest/health/db
External https://<server>/insight/gateway/health/db

Expected Output

HTTP Status Meaning Example JSON
200 OK Database reachable { "status": "UP" }
503 Service Unavailable Database unreachable or error occurred { "status": "DOWN" }