feat: change pushover emergency on alerts
This commit is contained in:
parent
0a30a2ac23
commit
6c046a549e
1 changed files with 47 additions and 22 deletions
|
|
@ -103,11 +103,12 @@ in
|
||||||
contactPoints = {
|
contactPoints = {
|
||||||
settings = {
|
settings = {
|
||||||
apiVersion = 1;
|
apiVersion = 1;
|
||||||
contactPoints = [{
|
contactPoints = [
|
||||||
|
{
|
||||||
orgId = 1;
|
orgId = 1;
|
||||||
name = "cp_dominik";
|
name = "cp_dominik_emergency";
|
||||||
receivers = [{
|
receivers = [{
|
||||||
uid = "dominik_pushover_cp_receiver";
|
uid = "dominik_pushover_emergency";
|
||||||
type = "pushover";
|
type = "pushover";
|
||||||
settings = {
|
settings = {
|
||||||
apiToken = "\${PUSHOVER_API_TOKEN}";
|
apiToken = "\${PUSHOVER_API_TOKEN}";
|
||||||
|
|
@ -118,12 +119,28 @@ in
|
||||||
expire = "2m";
|
expire = "2m";
|
||||||
sound = "siren";
|
sound = "siren";
|
||||||
okSound = "magic";
|
okSound = "magic";
|
||||||
message = ''
|
message = ''{{ template "default.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 = {
|
settings = {
|
||||||
apiVersion = 1;
|
apiVersion = 1;
|
||||||
policies = [{
|
policies = [{
|
||||||
receiver = "cp_dominik";
|
receiver = "cp_dominik_normal";
|
||||||
|
repeat_interval = "999d";
|
||||||
|
routes = [
|
||||||
|
{
|
||||||
|
receiver = "cp_dominik_emergency";
|
||||||
|
matchers = [ "alertname = HostDown" ];
|
||||||
|
repeat_interval = "999d";
|
||||||
|
}
|
||||||
|
];
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue