A simple service to do a health monitor of an app
1.3K
Simple healthcheck service created in python
The project still in the design step.
Created more modules and a frontend to visualize the healthcheck from a website.
If you want, you can use a container image allocated in the DockerHub
The container accept a ENV: CONFIG_PATH where you can pass the healthcheck config file path.
I recommend to mount an external volume for the config of the healthcheck and modules, and another one to mount the history folder to save all the state changes.
| Container Info | ||
| Container Engine | Operation System | Tecnology |
![]() | |
The proccess accept a the param -c or --config where you have to pass the path of the config file.
The config file has 2 parts:
Here you can configure the proccess:
The default time to wait in seconds between iteration to check the tasks
The engine is in an infinity loop, this param configure the time to wait between iterations of the sequence.
The number of try before to accept an non ok in a check.
The maximun number of state changes saved in the history file.
The folder where are allocated the history files.
The folder where are allocated the configuration of the tasks.
The folder where are allocated the specific lock file of the task for the threadings.
Here you're going to define a list of task.
The name of the tasks, this name would be the same as the config file.
The module what you're going to use.
The time to wait in seconds between iteration to check this task
This proccess is develop in a module mind, all the different check are modules (actually only one has been develop [HttpGetString])
All the modules could have different configuration style (but everything in a yaml file)

Arrow logo taken from: https://www.flaticon.com/free-icon/up-arrow_23714
Content type
Image
Digest
Size
56.4 MB
Last updated
over 7 years ago
docker pull rdcarrera/healthcheck