Consul - application connection tracking

Hi,

We are trying to find way to figure out the connectivity status of an application to a consul agent (client / server). The aspect which is similar to the one present in the zookeeper, where the ephemeral node indicates the active connection between the application and the zookeeper nodes. This way we can track the live connection status and perform some actions based on it.

Thanks