Answer the question
In order to leave comments, you need to log in
How to create a watcher in Consul?
The documentation for Consul has an example of a config with a watcher . I want to make mine similar. I create config.json
{
"watches":
{
"type": "checks",
"state": "critical",
"handler": "/crit.sh"
}
}
curl -v -XPUT -d @config.json http://127.0.0.1:8500/v1/agent/check/register
curl -s http://127.0.0.1:8500/v1/agent/self
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question