mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 18:59:07 +01:00
prometheus, alertmanager: Add description to alert
This commit is contained in:
parent
2cd07d8581
commit
8855886547
2 changed files with 5 additions and 5 deletions
|
|
@ -75,10 +75,7 @@ in
|
||||||
notification = {
|
notification = {
|
||||||
topic = "splitleaf";
|
topic = "splitleaf";
|
||||||
priority = "default";
|
priority = "default";
|
||||||
templates = {
|
templates.title = ''{{ index .Annotations "summary" }}'';
|
||||||
title = ''{{ index .Annotations "summary" }}'';
|
|
||||||
description = "";
|
|
||||||
};
|
|
||||||
tags = [
|
tags = [
|
||||||
{
|
{
|
||||||
condition = ''status == "resolved"'';
|
condition = ''status == "resolved"'';
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,10 @@ in
|
||||||
expr = "up == 0";
|
expr = "up == 0";
|
||||||
for = "2m";
|
for = "2m";
|
||||||
labels.severity = "critical";
|
labels.severity = "critical";
|
||||||
annotations.summary = "{{ $labels.instance }} is DOWN";
|
annotations = {
|
||||||
|
summary = "{{ $labels.instance }} is DOWN";
|
||||||
|
description = "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue