Skip to content

moluwole/WatchTower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WatchTower

Collect Error Logs from a number of applications

To start with this repo, run the following command to build the repo

docker-compose -p watchtower build

Once the containers have been built, use the following commands to start up the container

docker-compose -p watchtower up -d

This starts the containers in detach mode.

How to use

Please Note, this How to Use shows the steps for localhost

To send the error, it's advisable to use a background service to send the requests. It works effectively in try..catch blocks, error handlers e.t.c

Data sample to send:

{
  "clientIp": "IP Address of client that triggered the error",
  "service": "Unique name of the application/microservice where the error is triggered",
  "errorMessage": "A user readable form of the error message",
  "stackTrace": "The entire Exception in string form",
  "clientId": "Unique Identification for Client"
}

Send a POST request to 0.0.0.0:5000/save with the above data sample

TODO:

  • Authentication
  • Token based request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published