1
0
mirror of https://github.com/ManyakRus/telegram_loki.git synced 2024-12-12 09:33:50 +02:00
telegram_loki/bin/settings.txt
2024-11-07 10:05:34 +03:00

55 lines
1.5 KiB
Plaintext

#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_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=