Introspect server status

The /info resource gives you information about the status of a ksqlDB Server, which can be useful for health checks and troubleshooting. You can use the curl command to query the /info endpoint:

1
curl -sX GET "http://localhost:8088/info" | jq '.'

Your output should resemble:

1
2
3
4
5
6
7
{
  "KsqlServerInfo": {
    "version": "0.14.0",
    "kafkaClusterId": "j3tOi6E_RtO_TMH3gBmK7A",
    "ksqlServiceId": "default_"
  }
}

You can also check the health of your ksqlDB server by using the /healthcheck resource:

1
curl -sX GET "http://localhost:8088/healthcheck" | jq '.'

Your output should resemble:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{
  "isHealthy": true,
  "details": {
    "metastore": {
      "isHealthy": true
    },
    "kafka": {
      "isHealthy": true
    }
  }
}

Last update: 2020-10-20