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
Nikitin Aleksandr 23cacba58c сделал URL
2024-11-14 17:55:49 +03:00

67 lines
2.0 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
#LOKI_URL - URL of your grafana LOKI service
#in Grafana version 8.3.5 i filled:
#LOKI_URL="http://GrafanaURL.ru/api/datasources/proxy/1"
#in Grafana version 11.2.0 i filled:
#LokiURL i take from menu buttons: grafana browser - home - Administration - Go to connections - loki - URL*
#LOKI_URL="http://LokiURL.ru"
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:"
#LOKI_CHECKER_INTERVAL_MINUTES - interval minutes, for check LOKI log errors
LOKI_CHECKER_INTERVAL_MINUTES=10
#GRAFANA_LOGIN - login name for Grafana website
GRAFANA_LOGIN=
#GRAFANA_PASSWORD - password for Grafana website
GRAFANA_PASSWORD=
#TELEGRAM_CHAT_NAME - telegram chat ID (or name or phone number), for send all found log errors
TELEGRAM_CHAT_NAME=
#TELEGRAM_MESSAGES_COUNT - count of messages need to send to telegram, for every service
TELEGRAM_MESSAGES_COUNT=2
#TELEGRAM_API_KEY - API KEY from Telegram messenger
TELEGRAM_API_KEY=
#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=
#TELEGRAM_USERS_FILENAME - имя файла для хранения списка телеграм пользователей
#not need to change this file, automatic filling.
TELEGRAM_USERS_FILENAME="telegram_users.json"
#DATABASE_CHECKER_INTERVAL_MINUTES - interval minutes, for execute sql scripts
DATABASE_CHECKER_INTERVAL_MINUTES=60
#SQL_FILES_FOLDER - folder short filename for keep .sql files = "sql"
SQL_FILES_FOLDER="sql"
#Database settings - need to execute sql scripts every interval
DB_HOST=
DB_NAME=
DB_SCHEME=
DB_PORT="5432"
DB_USER=
DB_PASSWORD=