Skip to content

Commit d79093d

Browse files
committed
imp: cache to 3 TB gp2, mod loki coredump alert, mod perf vault role
1 parent 4b40510 commit d79093d

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

nix/cloud/alerts.nix

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22
inputs,
33
cell,
44
}: {
5+
ci-world-loki = {
6+
datasource = "loki";
7+
rules = [
8+
{
9+
alert = "CoredumpDetected";
10+
expr = ''sum(rate({syslog_identifier="systemd-coredump", host=~"core.*"}[1h] != "sshd" |= "dumped core")) by (host) > 0'';
11+
for = "1m";
12+
labels.severity = "critical";
13+
annotations = {
14+
description = ''
15+
Detected a coredump on {{ $labels.host }}.
16+
This usually requires attention and most likely manual intervention.
17+
To analyze a coredump, run `coredumpctl list` on the affected machine, and run `coredump debug $id` in a nix shell with gdb.'';
18+
summary = "Detected a coredump on {{ $labels.host }}";
19+
};
20+
}
21+
];
22+
};
23+
524
ci-world-darwin = {
625
datasource = "vm";
726
rules = [

nix/cloud/hydrationProfile.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ in {
133133
"auth/token/lookup-self" = [r];
134134
"auth/token/renew-self" = [u];
135135
"sys/capabilities-self" = [u];
136-
"kv/data/perf/*" = [r l];
137-
"kv/metadata/perf/*" = [r l];
136+
"kv/data/postgrest/*" = [r l];
137+
"kv/metadata/postgrest/*" = [r l];
138138
"nomad/creds/perf" = [r u];
139139
"consul/creds/developer" = [r u];
140140
"sops/keys/dev" = [r l];
@@ -265,6 +265,7 @@ in {
265265
# Cell Block local declared dashboards
266266
inherit
267267
(cell.alerts)
268+
ci-world-loki
268269
ci-world-darwin
269270
ci-world-spongix
270271
ci-world-nomad-follower
@@ -276,7 +277,6 @@ in {
276277
(inputs.bitte-cells.bitte.alerts)
277278
bitte-consul
278279
bitte-deadmanssnitch
279-
bitte-loki
280280
bitte-system
281281
bitte-vault
282282
bitte-vm-health

nix/metal/bitteProfile/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ in {
347347
instanceType = "m5n.4xlarge";
348348
privateIP = "172.16.0.52";
349349
subnet = cluster.vpc.subnets.core-1;
350-
volumeSize = 2000;
350+
volumeSize = 3000;
351351

352352
modules = [
353353
(bitte + /profiles/auxiliaries/telegraf.nix)

0 commit comments

Comments
 (0)