Skip to content

A monitoring tool for microservices you can define them and curl them with status check and send slack notification when microservice is down

Notifications You must be signed in to change notification settings

belalhassan91/uptime-shell-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

uptime-shell-docker

uptime shell script loop to all microservices you defined and curl them with status check and send slack notification when status code different than 200

How to use

First clone repository

git clone https://github.com/belalhassan91/uptime-shell-docker.git
cd uptime-shell-docker

create services.json

touch services.json

copy the following example

[
  {
        "url": "nginx",
        "port": 80,
        "path": "/"
  }
]

create slack webhook url and public channel then create slack.json

{
  "webhook_url": "https://hooks.slack.com/services/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "channel": "#test"
}

docker-compose.yml example

  uptime:
    build:
      context: src/uptime/
      dockerfile: Dockerfile
    image: uptime-${env}
    container_name: uptime-${env}
    environment:
      env: ${env}

About

A monitoring tool for microservices you can define them and curl them with status check and send slack notification when microservice is down

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published