blob: e0fc5db833948897d6764ccdf05ecbf40d7f1e1b (
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
|
# Heavily inspired by:
# https://github.com/ibizaman/selfhostblocks/blob/989865eb519e3fc3e8a803c374775451c47a29c8/modules/blocks/monitoring.nix
{
lib,
config,
...
}: let
cfg = config.vhack.monitoring;
in {
imports = [
./components/loki.nix
# ./components/perses.nix
./components/grafana.nix
./components/scrutiny.nix
./components/prometheus.nix
];
options.vhack.monitoring = {
enable = lib.mkEnableOption "monitoring defaults";
};
config.vhack.monitoring = lib.mkIf cfg.enable {
grafana.enable = true;
loki.enable = true;
prometheus.enable = true;
scrutiny. enable = true;
};
}
|