totoro: add valveindexinstock
This commit is contained in:
parent
66e9fb38f8
commit
dc996b324b
1 changed files with 31 additions and 0 deletions
|
@ -200,6 +200,22 @@ in {
|
||||||
|
|
||||||
pushgateway.enable = true;
|
pushgateway.enable = true;
|
||||||
|
|
||||||
|
rules = [
|
||||||
|
''
|
||||||
|
groups:
|
||||||
|
- name: valve_index
|
||||||
|
rules:
|
||||||
|
- alert: ValveIndexInStock
|
||||||
|
expr: valve_index_in_stock == 0
|
||||||
|
for: 1s
|
||||||
|
labels:
|
||||||
|
severity: page
|
||||||
|
annotations:
|
||||||
|
summary: "Valve Index in Stock!"
|
||||||
|
description: "The Valve Index is back in stock."
|
||||||
|
''
|
||||||
|
];
|
||||||
|
|
||||||
alertmanager = {
|
alertmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configuration = {
|
configuration = {
|
||||||
|
@ -265,5 +281,20 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.valveindexinstock = {
|
||||||
|
enable = true;
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${depot.py.valveindexinstock}/bin/valveindexinstock";
|
||||||
|
DynamicUser = true;
|
||||||
|
MountAPIVFS = true;
|
||||||
|
PrivateTmp = true;
|
||||||
|
PrivateUsers = true;
|
||||||
|
ProtectControlGroups = true;
|
||||||
|
ProtectKernelModules = true;
|
||||||
|
ProtectKernelTunables = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
my.prometheus.additionalExporterPorts.valveindexinstock = 9998;
|
||||||
|
|
||||||
system.stateVersion = "20.03";
|
system.stateVersion = "20.03";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue