Watch for services / instance events

hey folks,

Currently, i have two scenarios where i need to get informed whenever a new service or instance is registered as well as when a registered entity is deregistered. Furthermore, it would be awesome if i can define some queries for these type of events, to include or exclude specific services or instances, e.g., exclude or include by tags, name etc.

I’ve looked over the docs and did some research, but i didn’t find a way except of sending periodically requests to consul with the respective query. Is there a way to receive an event or something other to achieve that?