Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amenzhinsky/consul-slack
https://github.com/amenzhinsky/consul-slack
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/amenzhinsky/consul-slack
- Owner: amenzhinsky
- Created: 2017-03-06T07:14:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-25T06:03:27.000Z (about 7 years ago)
- Last Synced: 2024-06-20T12:03:48.843Z (5 months ago)
- Language: Go
- Size: 4.37 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# consul-slack [![CircleCI](https://circleci.com/gh/amenzhinsky/consul-slack.svg?style=svg)](https://circleci.com/gh/amenzhinsky/consul-slack)
Consul services state slack notifier written in go.
## Running
You can safely run multiple consul-slack instances because they use locking strategy based on the consul KV.
### Systemd
```
[Unit]
Description=Consul slack notifier
Wants=network.target[Service]
Type=simple
User=consul-slack
Group=consul-slack
ExecStart=/usr/local/bin/consul-slack \
-slack-channel '#consul' \
-slack-username Consul \
-slack-icon https://image-url \
-consul-address 127.0.0.1:8500 \
-consul-schema http \
-consul-datacenter dc1 \
SLACK_WEBHOOK_URL
Restart=on-failure[Install]
WantedBy=multi-user.target
```