Преглед на файлове

Alerts reworked

Change alerts names, severities and descriptions.

Change-Id: Ife9443a850a31c6d44b2339f4894c01dc353d921
Closes-bug: PROD-19840
pull/73/head
Michal Kobus преди 6 години
родител
ревизия
656278d831
променени са 1 файла, в които са добавени 14 реда и са изтрити 14 реда
  1. +14
    -14
      salt/meta/prometheus.yml

+ 14
- 14
salt/meta/prometheus.yml Целия файл

@@ -3,30 +3,30 @@
server:
alert:
{%- if pillar.salt.get('master', {}).get('enabled', False) %}
SaltMasterProcessDown:
{%- raw %}
SaltMasterServiceDown:
if: >-
procstat_running{process_name="salt-master"} == 0
{%- raw %}
labels:
severity: warning
service: salt-master
severity: critical
service: salt
annotations:
summary: 'Salt-master service is down'
description: 'Salt-master service is down on node {{ $labels.host }}'
{%- endraw %}
summary: "Salt-master service is down"
description: "The salt-master service on the {{ $labels.host }} node is down."
{%- endraw %}
{%- endif %}
{%- if pillar.salt.get('minion', {}).get('enabled', False) %}
SaltMinionProcessDown:
{%- raw %}
SaltMinionServiceDown:
if: >-
procstat_running{process_name="salt-minion"} == 0
{%- raw %}
labels:
severity: warning
service: salt-minion
severity: critical
service: salt
annotations:
summary: 'Salt-minion service is down'
description: 'Salt-minion service is down on node {{ $labels.host }}'
{%- endraw %}
summary: "Salt-minion service is down"
description: "The salt-minion service on the {{ $labels.host }} node is down."
{%- endraw %}
{%- endif %}
{%- endif %}
{%- endif %}

Loading…
Отказ
Запис