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

Change the default URL where reads the config in consul "/consul-alerts/xxx" for another URL, for example "/consul-alerts-2/xxx"? #267

Open joe-blue opened 5 years ago

joe-blue commented 5 years ago

Hi:

We would like to have more than one "consul-alert" running to check different services and have different alarms.

I've checked the configuration options and it seems there is no config for that. I've checked the code (for example https://github.com/AcalephStorage/consul-alerts/blob/master/consul/client.go) and it seems "/consul-alerts/" is hardcoded.

Would it be possible to configure it using the arguments when running the docker container?

Thank you in advance.

fusiondog commented 5 years ago

It would probably require a code change, but shouldn't be difficult to include a start up flag for it. Happy to accept a PR. :)