:satellite: A small HTTP monitoring tool
As for now,
watcheris tightly coupled on how autobahn works.
watcher is a monitoring tool that strives to monitor our PCI services. In order to do that, it creates authorization requests and send notifications if anything goes wrong.
In the future, we plan to offer more on metrics and integrations.
Check out in the table below the environment variables settings:
| env var | mandatory | description | example |
|---|---|---|---|
WATCHER_ENDPOINT | yes | Which endpoint to watch | http://localhost:8080 |
WATCHER_TIMEOUT | yes | Request timeout in seconds | 10 |
WATCHER_TIMER | yes | Delay between each request in seconds | 1000 |
WATCHER_SLACK_HOOKENDPOINT | yes (for now) | Slack hook endpoint | https://hooks.slack.com/services/AZC/12354/ASzxca09 |
WATCHER_SLACK_USERNAME | no | Slack hook username that will be displayed. | "Watcher (TEST)" |
WATCHER_SLACK_TEXT | no | Slack hook text to be appended to the request response. | ":rotating_light: THIS IS A TEST :rotating_light:" |
WATCHER_SLACK_ICON | no | Slack hook emoji icon. | ":ghost:" |
Obs: these variables are already defined with default values. For development purposes, if you want to change them, you can edit the
docker-compose.ymlfile.
In order to run the project in your local environment, execute these two commands, as described below:
# As Golang itself requires the source code to be recompiled after every change,
# this first command will install the project dependencies + build the
# project's executable file.
docker-compose build --no-cache watcher
# Once the source code is recompiled and a new executable file is ready for
# action, it's time to execute it - and this command will do the trick ;)
docker-compose run --rm watcher
Execute the command in your terminal, at the project's root folder:
docker-compose down
Content type
Image
Digest
Size
5.1 MB
Last updated
about 7 years ago
docker pull pagarme/watcher