feat: change pushover emergency on alerts
This commit is contained in:
@@ -103,11 +103,12 @@ in
|
||||
contactPoints = {
|
||||
settings = {
|
||||
apiVersion = 1;
|
||||
contactPoints = [{
|
||||
contactPoints = [
|
||||
{
|
||||
orgId = 1;
|
||||
name = "cp_dominik";
|
||||
name = "cp_dominik_emergency";
|
||||
receivers = [{
|
||||
uid = "dominik_pushover_cp_receiver";
|
||||
uid = "dominik_pushover_emergency";
|
||||
type = "pushover";
|
||||
settings = {
|
||||
apiToken = "\${PUSHOVER_API_TOKEN}";
|
||||
@@ -118,12 +119,28 @@ in
|
||||
expire = "2m";
|
||||
sound = "siren";
|
||||
okSound = "magic";
|
||||
message = ''
|
||||
{{ template "default.message" . }}
|
||||
'';
|
||||
message = ''{{ template "default.message" . }}'';
|
||||
};
|
||||
}];
|
||||
}
|
||||
{
|
||||
orgId = 1;
|
||||
name = "cp_dominik_normal";
|
||||
receivers = [{
|
||||
uid = "dominik_pushover_normal";
|
||||
type = "pushover";
|
||||
settings = {
|
||||
apiToken = "\${PUSHOVER_API_TOKEN}";
|
||||
userKey = "\${PUSHOVER_USER_KEY}";
|
||||
device = "iphone";
|
||||
priority = 1;
|
||||
sound = "siren";
|
||||
okSound = "magic";
|
||||
message = ''{{ template "default.message" . }}'';
|
||||
};
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -131,7 +148,15 @@ in
|
||||
settings = {
|
||||
apiVersion = 1;
|
||||
policies = [{
|
||||
receiver = "cp_dominik";
|
||||
receiver = "cp_dominik_normal";
|
||||
repeat_interval = "999d";
|
||||
routes = [
|
||||
{
|
||||
receiver = "cp_dominik_emergency";
|
||||
matchers = [ "alertname = HostDown" ];
|
||||
repeat_interval = "999d";
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user