Skip to content

harrier999/SimpleHealthchecker

Repository files navigation

Service HealthChecker

How to Run

Option 1.Using Shellscipt

bash install.sh

Option 2.Install Manually

Prerequisites

install the packages below.

  • pip3 - sudo apt install python3-pip
  • pipenv - pip3 install pipenv
  • pyenv - curl https://pyenv.run | bash

Activate Vritual Environment

  1. Install the dependencies: pipenv install
  2. Activate virtual environment: pipenv shell

Run

python3 metric.py

Settings

# settings.py
service_list = [
    ServiceFactory.create("ssh", ServiceType.SYSTEMD),
    ServiceFactory.create("redis", ServiceType.CONTAINER, "net_test_redis"),
    ServiceFactory.create("scrap", ServiceType.PROCESS,
        request_list=[
            Request("GET", "http://localhost:8000/api/schema/swagger-ui/"),
        ],
    ),
]

Check Metrics

curl http://localhost:8099/metrics

About

Easy Healthchecker with integrated Grafana, Prometheus for Docker, Systemd, Process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published