Skip to content

nhat2008/docker-consul-alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to use consul-alert to alert in slack

  1. Install Docker in the host
  2. Modify the file: files/add-slack.sh with information: slack url, slack channel, slack bot name.
  3. Change the checking scripts an interval in the files/alert.json
  4. Install and run the consul agent:
    4.1 Install directly to the host with the commands in https://www.consul.io/intro/getting-started/install.html
    4.2 Install with docker commands: docker run -d -p 8400:8400 -p 8500:8500 -p 53:53/udp -h consul-server-node --name consul progrium/consul -server -bootstrap
  5. Get the IP address of the consul and replace the addr to localhost:8500 in tasks/main.yml
  6. Install ansible
  7. Run ansible commands to install consul-alert: ansible-playbook -i hosts service-discovery-alert.yml

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages