mirror of
https://github.com/ManyakRus/telegram_loki.git
synced 2025-01-07 13:39:52 +02:00
сделал telegram_bot
This commit is contained in:
parent
3aee5e0bef
commit
2caa956334
1
bin_prod/date.txt
Normal file
1
bin_prod/date.txt
Normal file
@ -0,0 +1 @@
|
||||
2024-11-13 13:41:13.226
|
61
bin_prod/settings.txt
Normal file
61
bin_prod/settings.txt
Normal file
@ -0,0 +1,61 @@
|
||||
#LOKI_CHECKER_ENABLED - true = need check log errors in LOKI service
|
||||
LOKI_CHECKER_ENABLED=true
|
||||
|
||||
#DATABASE_CHECKER_ENABLED - true = need execute sql scripts from "sql" folder
|
||||
DATABASE_CHECKER_ENABLED=false
|
||||
|
||||
|
||||
#TELEGRAM_API_KEY - API KEY from Telegram messenger
|
||||
TELEGRAM_API_KEY=
|
||||
|
||||
#TELEGRAM_APP_ID - APP ID from Telegram
|
||||
#TELEGRAM_APP_ID=
|
||||
|
||||
#TELEGRAM_APP_HASH - APP HASH from Telegram
|
||||
#TELEGRAM_APP_HASH=
|
||||
|
||||
#TELEGRAM_PHONE_FROM - your phone number, from messages will be sent
|
||||
TELEGRAM_PHONE_FROM=
|
||||
|
||||
#TELEGRAM_PHONE_SEND_TEST - phone number for test messages (not need)
|
||||
TELEGRAM_PHONE_SEND_TEST=
|
||||
|
||||
#LOKI_URL - URL of your grafana LOKI service
|
||||
LOKI_URL=
|
||||
|
||||
#LOKI_SEARCH_TEXT - regilar expression, which text need to find in LOKI. Need escape characters, "[" = "\\\\["
|
||||
LOKI_SEARCH_TEXT="\\\\[ERROR\\\\]|\\\\[PANIC\\\\]|level=error|level=panic|panic:|(\\\\n\\\\t, )error:"
|
||||
|
||||
#GRAFANA_LOGIN - login name for Grafana website
|
||||
GRAFANA_LOGIN=
|
||||
|
||||
#GRAFANA_PASSWORD - password for Grafana website
|
||||
GRAFANA_PASSWORD=
|
||||
|
||||
#TELEGRAM_CHAT_NAME - telegram chat name, or phone number
|
||||
TELEGRAM_CHAT_NAME=
|
||||
|
||||
#TELEGRAM_MESSAGES_COUNT - count of messages need to send to telegram, for every service
|
||||
TELEGRAM_MESSAGES_COUNT=2
|
||||
|
||||
#DATABASE_CHECKER_INTERVAL_MINUTES - interval minutes, for execute sql scripts
|
||||
DATABASE_CHECKER_INTERVAL_MINUTES=60
|
||||
|
||||
#LOKI_CHECKER_INTERVAL_MINUTES - interval minutes, for check LOKI log errors
|
||||
LOKI_CHECKER_INTERVAL_MINUTES=10
|
||||
|
||||
#SQL_FILES_FOLDER - folder short filename for keep .sql files = "sql"
|
||||
SQL_FILES_FOLDER="sql"
|
||||
|
||||
#Database settings - need to execute sql scripts every
|
||||
DB_HOST=
|
||||
DB_NAME=
|
||||
DB_SCHEME=
|
||||
DB_PORT="5432"
|
||||
DB_USER=
|
||||
DB_PASSWORD=
|
||||
|
||||
|
||||
# TELEGRAM_USERS_FILENAME - имя файла для хранения списка телеграм пользователей
|
||||
# этот файл заполняется автоматически, вручную заполнять не надо
|
||||
TELEGRAM_USERS_FILENAME="telegram_users.json"
|
2
bin_prod/settings/services.txt
Normal file
2
bin_prod/settings/services.txt
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
5
bin_prod/settings/services_example.txt
Normal file
5
bin_prod/settings/services_example.txt
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"test-service1": "@DeveloperTelegramName",
|
||||
"test-service2": "FirstName SecondName",
|
||||
"test-service3": "t.me/testservice_errors",
|
||||
}
|
1
bin_prod/subversion.txt
Normal file
1
bin_prod/subversion.txt
Normal file
@ -0,0 +1 @@
|
||||
00173
|
1
bin_prod/telegram_users.json
Normal file
1
bin_prod/telegram_users.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
1
bin_prod/version.txt
Normal file
1
bin_prod/version.txt
Normal file
@ -0,0 +1 @@
|
||||
v0
|
Loading…
Reference in New Issue
Block a user