Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
/ monitor Public archive

Background service that checks the health of other web services

License

Notifications You must be signed in to change notification settings

palavrapasse/monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monitor

Background service that checks the health of other web services.

Hooks

This repository is configured with client-side Git hooks which you need to install by running the following command:

./hooks/INSTALL

Usage

To properly run this service, you will need to a setup a .env file. Start by creating a copy of the .env.tpl file and fill the variables with values appropriate for the execution context.

Then, all you need to do is to run the service with the following command:

go run cmd/monitor/monitor.go

Docker

To run the service with Docker, you will first need to setup the .git-local-credentials file. This credentials file shall contain the git credentials config to access paramedic and palavrapasse private modules.

To build the service image:

docker_tag=monitor:latest

docker build \
    -f ./deployments/Dockerfile \
    --secret id=git-credentials,src=.local-git-credentials \
    . -t $docker_tag

To run the service container:

export $(grep -v '^#' .env | xargs)

docker run \
    --env-file .env \
    -t $docker_tag

About

Background service that checks the health of other web services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published