AcalephStorage / consul-alerts

A simple daemon to send notifications based on Consul health checks
GNU General Public License v2.0
825 stars 191 forks source link

Check on number of service instances available? #221

Open sixtus opened 6 years ago

sixtus commented 6 years ago

Hi,

finally getting around to testing consul-alerts. So far so great.

However, I am less interesting a single check failing but rather "how many service instances are still all green". Is that possible with consul-alerts today?

Thanks, Hagen

Gerrrr commented 6 years ago

Hey @sixtus ,

It is possible to do with Consul even without consul-alerts. Check out https://www.consul.io/api/health.html#list-nodes-for-service. In the response you will get information about all service instances including health checks and their statuses.

Is this what you were looking for?

Best, Aleks