Skip to content
프로젝트

bboysoulcn/telemonitor has 217 GitHub stars and 23 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-24 05:43 UTC. Last push 2024-07-30.

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

소개

TeleMonitor is a system monitoring tool written in Python that can monitor CPU, memory, and disk usage and send alerts via Telegram.

개발 도구

README.md

Original

中文 | English

TeleMonitor

TeleMonitor is a system monitoring tool written in Python that can monitor CPU, memory, and disk usage and send alerts via Telegram.

Usage

First, you need to create a Telegram bot and get the API token. You can refer to the Telegram official documentation to create a Telegram bot.

Then, you need to get the Telegram chat ID where you want to receive alerts. You can use @userinfobot to get your chat ID.

Next, clone this project:

git clone https://github.com/bboysoulcn/telemonitor.git

You can use docker compose to run TeleMonitor:

docker-compose up -d

Or you can use k8s to run TeleMonitor:

kubectl apply -f deployment.yaml

Here are the environment variables for TeleMonitor:

  • TG_API_TOKEN: The API token of your Telegram bot.
  • TG_CHAT_ID: The Telegram chat ID where you want to receive alerts.
  • TG_API_BASE_URL: The base URL of the Telegram API, default is https://api.telegram.org.
  • CPU_PERCENT: The threshold for CPU usage. TeleMonitor will send an alert if the usage exceeds this value. Default is 80.
  • MEMORY_PERCENT: The threshold for memory usage. TeleMonitor will send an alert if the usage exceeds this value. Default is 80.
  • DISK_PERCENT: The threshold for disk usage. TeleMonitor will send an alert if the usage exceeds this value. Default is 80.
  • MONITOR_INTERVAL: The interval time (in seconds) for monitoring. Default is 60.
  • DISK_PATH: The path of the disk. Default is /host.
  • URL_LIST: The list of URLs to monitor, separated by commas. Default is empty.
  • LANGUAGE: The language. Default is en. Options are en and cn.

Here are the commands for the bot:

  • /start - Get help
  • /help - Get help
  • /status - Get system status

If you cannot access the Telegram API

You can use the following project to create an API proxy and modify the environment variable TG_API_BASE_URL:

teleproxy

Demo

Contributors

Telegram Channel

My telegram channel: https://t.me/bboysoulcn

License

This project is licensed under the MIT License. See the LICENSE file for details.

관련 프로젝트 살펴보기

불러오는 중…