maxtpham / kong-healthcheck

Automatically detect & health-check for all backends, services & routes in Kong API Gateway, then notify to Slack & publish healthy/unhealthy status to InfluxDB/Grafana

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kong Health-check

Automatically detect & health-check for all backends, services & routes in Kong API Gateway, then notify to Slack & publish healthy/unhealthy status to InfluxDB/Grafana

Getting started

cd bin/

# init swarm mode for local docker
docker swarm init

# deploy the portainer at http://localhost:9000
./portainer.sh

# create khc-net network
./network.sh

# deploy the kong & db
./kong-deploy.sh

# ...wait for 1 minute
# looking for kong:latest & postgres:9.5
docker container ls

# browse to kong endpoints:
# - home: http://localhost:8000
# - admin: http://localhost:8001

# create test services (nginx & httpd)
./test-deploy.sh
# map Kong to test services
# - http://localhost:8000/nginx
# - http://localhost:8000/httpd
./test-services.sh

# create KHC services (master & worker)
./khc-deploy.sh
# map Kong to test services
# - http://localhost:8000/khc-master
# - http://localhost:8000/khc-worker
./khc-services.sh

About

Automatically detect & health-check for all backends, services & routes in Kong API Gateway, then notify to Slack & publish healthy/unhealthy status to InfluxDB/Grafana


Languages

Language:TypeScript 52.1%Language:Shell 22.3%Language:Dockerfile 21.4%Language:JavaScript 4.2%