Get the Status of a ksqlDB Server on Confluent Platform¶
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:
curl --http1.1 -sX GET "http://localhost:8088/info" | jq '.'
Your output should resemble:
{
"KsqlServerInfo": {
"version": "0.29.0",
"kafkaClusterId": "j3tOi6E_RtO_TMH3gBmK7A",
"ksqlServiceId": "default_"
}
}
You can also check the health of your ksqlDB server by using the
/healthcheck
resource:
curl --http1.1 -sX GET "http://localhost:8088/healthcheck" | jq '.'
Your output should resemble:
{
"isHealthy": true,
"details": {
"metastore": {
"isHealthy": true
},
"kafka": {
"isHealthy": true
}
}
}