@cryptotaxi247 / infra / commits / 6e798916

prometheus: scrape node-exporter for non-critical-infra

Martin Weinelt committed Oct 23, 2024 at 19:09 UTC 6e798916ae8fef4b08dbe8c34094619034d94f43
4 files changed +17
build/pluto/prometheus/exporters/node.nix
+7
@@ -18,6 +18,13 @@
18 labels.role = "monitoring";
19 targets = [ "pluto:9100" ];
20 }
21 + {
22 + labels.role = "services";
23 + targets = [
24 + "caliban.nixos.org:9100"
25 + "umbriel.nixos.org:9100"
26 + ];
27 + }
28 {
29 labels.role = "mac";
30 targets = [
non-critical-infra/hosts/caliban.nixos.org/default.nix
+1
@@ -11,6 +11,7 @@
11 ../../modules/element-web.nix
12 ../../modules/matrix-synapse.nix
13 ../../modules/owncast.nix
14 + ../../modules/prometheus/node-exporter.nix
15 ../../modules/vaultwarden.nix
16 ./limesurvey-tmp.nix
17 ];
non-critical-infra/hosts/umbriel.nixos.org/default.nix
+1
@@ -7,6 +7,7 @@
7 inputs.srvos.nixosModules.hardware-hetzner-cloud-arm
8 ../../modules/common.nix
9 ../../modules/mjolnir.nix
10 + ../../modules/prometheus/node-exporter.nix
11 ];
12
13 # Bootloader.
non-critical-infra/modules/prometheus/node-exporter.nix new
+8
@@ -0,0 +1,8 @@
1 +{
2 + networking.firewall.allowedTCPPorts = [ 9100 ];
3 +
4 + services.prometheus.exporters.node = {
5 + enable = true;
6 + enabledCollectors = [ "systemd" ];
7 + };
8 +}