Help: Get any change of the service via Consul API

Hi Team, I’m trying to get all services info via API, Does it have an API which can get any change about the service, include health check change, catalog service change. If it have, which API can do it? Thanks a lot

Hi @Fabriceli,

Consul does not provide a single API endpoint that allows you to retrieve/monitor information for all services in the catalog. You will need to establish a separate blocking query for each service you wish to monitor. Typically these blocking queries would be established against the /v1/agent/health/:service API endpoint.