Skip to content

Find out if your server metrics get out of control.

License

quvvii/python-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-notifier

python Docker License

A simple project that notifies you via a Telegram bot if the server's RAM or CPU are higher than necessary.

Installation

  1. Create .env file:
TELEGRAM_BOT_TOKEN=
TELEGRAM_ADMIN_ID=
  1. You can change some settings in the notifier/config.py file:
  • CPU_MAX_PERSENT - trigger limits for the CPU in percentage
  • RAM_MAX_PERSENT - trigger limits for the RAM in percentage
  • SEND_ALERT_TIME - the time interval between sending messages to Telegram
  • SERVER_NAME - your server name
  • MESSAGE_BODY - message that sends to Telegram
  • TIMEZONE - your time relative to UTC (timestamp will be UTC + YOUR TIMEZONE hours)
  1. Build the image:
docker build -t python-notifier .
  1. Start the container:
docker run -d \
--name notifier \
--env-file ./.env \
python-notifier

Screenshot

License

This project is licensed under the MIT License.

About

Find out if your server metrics get out of control.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published