blob: 0b2ed1cb20866c46075aed8f516dbaa3e1ab8433 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
{
extraModules,
pkgs,
vhack,
...
}: let
grafanaDomain = "grafana.server.org";
scrutinyDomain = "scrutiny.server.org";
in
vhack.runTest {
name = "monitoring";
serverDomains = [
{server = grafanaDomain;}
{server = scrutinyDomain;}
];
nodes = {
client = {};
server = {config, ...}: {
imports =
extraModules
++ [
../../../../modules
];
# there are no SMART available disk in the VM, so this service always fails.
systemd.services."smartd".enable = false;
age.identityPaths = ["${../../../common/email/hostKey}"];
vhack = {
monitoring = {
grafana = {
enable = true;
contactPoints = ["me@example.com"];
fqdn = grafanaDomain;
adminPassword = ../../../common/email/dkim/alice.com/private.age;
secretKey = ../../../common/email/dkim/bob.com/private.age;
# TODO: Add a test for that <2026-07-19>
smtp = null;
};
loki = {
enable = true;
};
prometheus = {
enable = true;
};
scrutiny = {
enable = true;
fqdn = scrutinyDomain;
};
};
};
};
};
services = [
{server = "grafana.service";}
{server = "fluent-bit.service";}
{server = "loki.service";}
{server = "netdata.service";}
];
testScript = {...}:
# Python
''
# TODO: We should probably query some of the prometheus metrics here? <2026-07-19>
'';
}
|