How to check the health of an Azure Eventhub

2k Views Asked by At

I have an application that uses Azure Eventhub as one of the services and I need to implement a public health check endpoint to my application. To do that, I need to assess the connection to the eventhub. Is there a way to achieve this?

1

There are 1 best solutions below

0
On BEST ANSWER

If you're using ballerina, you can use the Get Event Hub rest api. In its response, it has a Status value which can be used to check the health.

For other languages like c# or java, you can directly use the Management library for event hub.