This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
сервис_loki [2026/11/07 14:21] val [Примеры правил] |
сервис_loki [2026/11/08 09:24] (current) val |
||
|---|---|---|---|
| Line 114: | Line 114: | ||
| annotations: | annotations: | ||
| description: "В системе {{ $labels.host_name }} всплеск ошибок (error/abandon/fail/expire)" | description: "В системе {{ $labels.host_name }} всплеск ошибок (error/abandon/fail/expire)" | ||
| + | dashboard: http://192.168.X.10:3000/n/nnnnnnnn/loki-dashboard | ||
| </code> | </code> | ||
| * Вариант 2: каждая ошибка - alert | * Вариант 2: каждая ошибка - alert | ||
| Line 138: | Line 139: | ||
| annotations: | annotations: | ||
| description: "В системе {{ $labels.host_name }} обнаружена ошибка (error/abandon/fail/expire)" | description: "В системе {{ $labels.host_name }} обнаружена ошибка (error/abandon/fail/expire)" | ||
| + | dashboard: http://192.168.X.10:3000/n/nnnnnnnn/loki-dashboard | ||
| </code><code> | </code><code> | ||
| server# install -o 10001 /root/application_alerts.yaml /disk2/loki/rules/fake/ ; \ | server# install -o 10001 /root/application_alerts.yaml /disk2/loki/rules/fake/ ; \ | ||
| Line 145: | Line 147: | ||
| </code> | </code> | ||
| + | * [[Регистрация событий в Linux#Использование утилиты logger]] | ||