mirror of
https://github.com/ManyakRus/telegram_loki.git
synced 2025-02-06 10:10:58 +02:00
сделал DeveloperName
This commit is contained in:
parent
8fa2e852bb
commit
dee01f19d4
@ -7,7 +7,8 @@ Therefore, it is necessary to automate the process of searching for errors in lo
|
|||||||
The application does:
|
The application does:
|
||||||
Search for errors in the LOKI logger
|
Search for errors in the LOKI logger
|
||||||
1. Log in to grafana
|
1. Log in to grafana
|
||||||
2. Takes a list of services from the services.txt file
|
2. Takes a list of services from the services.txt file,
|
||||||
|
including the name of the service and the name of the person responsible
|
||||||
3. For each service, searches for LOKI logs with the text: error:, panic:, ERROR:, PANIC:
|
3. For each service, searches for LOKI logs with the text: error:, panic:, ERROR:, PANIC:
|
||||||
4. Sends the found logs with errors to the Telegram messenger
|
4. Sends the found logs with errors to the Telegram messenger
|
||||||
5. Repeats the search every 10 minutes
|
5. Repeats the search every 10 minutes
|
||||||
@ -18,6 +19,9 @@ Search for errors in the database:
|
|||||||
if the script returns a value, a message about this will come to the Telegram messenger,
|
if the script returns a value, a message about this will come to the Telegram messenger,
|
||||||
if the script does not return lines, then everything is fine.
|
if the script does not return lines, then everything is fine.
|
||||||
3. Repeats requests every 60 minutes
|
3. Repeats requests every 60 minutes
|
||||||
|
4. If you fill in the scripts.txt file (scripts_add.txt),
|
||||||
|
including the .sql file name and the name of the person responsible,
|
||||||
|
then the name of the person responsible will also be added.
|
||||||
|
|
||||||
Installation procedure:
|
Installation procedure:
|
||||||
1. Compile this repository
|
1. Compile this repository
|
||||||
|
@ -7,7 +7,8 @@
|
|||||||
Приложение делает:
|
Приложение делает:
|
||||||
Поиск ошибок в логгере LOKI
|
Поиск ошибок в логгере LOKI
|
||||||
1. Логинится в grafana
|
1. Логинится в grafana
|
||||||
2. Берёт список сервисов из файла services.txt
|
2. Берёт список сервисов из файла services.txt,
|
||||||
|
в том числе имя сервиса и имя ответственного
|
||||||
3. По каждому сервису ищет логи LOKI с текстом: error:,panic:,ERROR:,PANIC:
|
3. По каждому сервису ищет логи LOKI с текстом: error:,panic:,ERROR:,PANIC:
|
||||||
4. Найденные логи с ошибками присылает в Telegram мессенджер
|
4. Найденные логи с ошибками присылает в Telegram мессенджер
|
||||||
5. Повторяет поиск каждые 10 минут
|
5. Повторяет поиск каждые 10 минут
|
||||||
@ -18,6 +19,9 @@
|
|||||||
если скрипт вернёт значение, то сообщение об этом придёт в Telegram messenger,
|
если скрипт вернёт значение, то сообщение об этом придёт в Telegram messenger,
|
||||||
если скрипт не вернёт ни одной строки, то значит всё хорошо.
|
если скрипт не вернёт ни одной строки, то значит всё хорошо.
|
||||||
3. Повторяет запросы каждые 60 минут
|
3. Повторяет запросы каждые 60 минут
|
||||||
|
4. Если заполнить файл scripts.txt (scripts_add.txt),
|
||||||
|
в том числе имя файла .sql и имя ответственного,
|
||||||
|
то будет ещё добавлять имя ответсвенного.
|
||||||
|
|
||||||
|
|
||||||
Порядок установки:
|
Порядок установки:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user