.. | ||
healthcheck | ||
script | ||
.dockerignore | ||
.python-version | ||
build.sh | ||
constants.sh | ||
Dockerfile | ||
pyproject.toml | ||
README.md | ||
requirements.txt | ||
requirements_dev.txt | ||
start.sh | ||
stop.sh |
Healthcheck reporter
Periodically checks if resources are reacheable and reports via a configurable webhook.
Configuration
A config.json
file should be provided and follow the schema outlined in use_cases.Configuration
:
{
"endpoints": {
"service-a": "https://service-a.com",
"service-b": "http://service-b:8080",
...
},
"webhook_url": "https://my-webhook.com/",
"check_interval": 3600
}
Every check_interval
seconds, the application will attempt to reach each of the services and post a message summarizing the results to webhook_url
.