Skip to content

Commit 6e79891

Browse files
mweineltMic92
authored andcommitted
prometheus: scrape node-exporter for non-critical-infra
1 parent 457a8ca commit 6e79891

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

build/pluto/prometheus/exporters/node.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
labels.role = "monitoring";
1919
targets = [ "pluto:9100" ];
2020
}
21+
{
22+
labels.role = "services";
23+
targets = [
24+
"caliban.nixos.org:9100"
25+
"umbriel.nixos.org:9100"
26+
];
27+
}
2128
{
2229
labels.role = "mac";
2330
targets = [

non-critical-infra/hosts/caliban.nixos.org/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
../../modules/element-web.nix
1212
../../modules/matrix-synapse.nix
1313
../../modules/owncast.nix
14+
../../modules/prometheus/node-exporter.nix
1415
../../modules/vaultwarden.nix
1516
./limesurvey-tmp.nix
1617
];

non-critical-infra/hosts/umbriel.nixos.org/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
inputs.srvos.nixosModules.hardware-hetzner-cloud-arm
88
../../modules/common.nix
99
../../modules/mjolnir.nix
10+
../../modules/prometheus/node-exporter.nix
1011
];
1112

1213
# Bootloader.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
networking.firewall.allowedTCPPorts = [ 9100 ];
3+
4+
services.prometheus.exporters.node = {
5+
enable = true;
6+
enabledCollectors = [ "systemd" ];
7+
};
8+
}

0 commit comments

Comments
 (0)