forked from CCCHH/nix-infra
all: setup prometheus node exporter for all hosts on Chaosknoten
Do that so we can have monitoring for them via prometheus, alertmanager and grafana. Also add a local ip for the git host for PVE firewalling.
This commit is contained in:
parent
68f11ad955
commit
c54b655b0e
3 changed files with 22 additions and 0 deletions
8
config/extra/prometheus-exporter.nix
Normal file
8
config/extra/prometheus-exporter.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.prometheus.exporters.node = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
|
@ -11,6 +11,10 @@
|
|||
address = "212.12.51.136";
|
||||
prefixLength = 28;
|
||||
}
|
||||
{
|
||||
address = "172.31.17.154";
|
||||
prefixLength = 25;
|
||||
}
|
||||
];
|
||||
ipv6.addresses = [
|
||||
{
|
||||
|
|
10
flake.nix
10
flake.nix
|
@ -113,6 +113,7 @@
|
|||
./config/common
|
||||
./config/proxmox-vm
|
||||
sops-nix.nixosModules.sops
|
||||
./config/extra/prometheus-exporter.nix
|
||||
./config/hosts/netbox
|
||||
];
|
||||
};
|
||||
|
@ -123,6 +124,7 @@
|
|||
./config/common
|
||||
./config/proxmox-vm
|
||||
sops-nix.nixosModules.sops
|
||||
./config/extra/prometheus-exporter.nix
|
||||
./config/hosts/matrix
|
||||
];
|
||||
};
|
||||
|
@ -133,6 +135,7 @@
|
|||
./config/common
|
||||
./config/proxmox-vm
|
||||
sops-nix.nixosModules.sops
|
||||
./config/extra/prometheus-exporter.nix
|
||||
./config/hosts/public-web-static
|
||||
];
|
||||
};
|
||||
|
@ -143,6 +146,7 @@
|
|||
./config/common
|
||||
./config/proxmox-vm
|
||||
sops-nix.nixosModules.sops
|
||||
./config/extra/prometheus-exporter.nix
|
||||
./config/hosts/git
|
||||
];
|
||||
};
|
||||
|
@ -153,6 +157,7 @@
|
|||
./config/common
|
||||
./config/proxmox-vm
|
||||
sops-nix.nixosModules.sops
|
||||
./config/extra/prometheus-exporter.nix
|
||||
./config/hosts/forgejo-actions-runner
|
||||
];
|
||||
};
|
||||
|
@ -171,6 +176,7 @@
|
|||
modules = [
|
||||
./config/common
|
||||
./config/proxmox-vm
|
||||
./config/extra/prometheus-exporter.nix
|
||||
./config/hosts/eh22-wiki
|
||||
];
|
||||
};
|
||||
|
@ -180,6 +186,7 @@
|
|||
modules = [
|
||||
./config/common
|
||||
./config/proxmox-vm
|
||||
./config/extra/prometheus-exporter.nix
|
||||
./config/hosts/nix-box-june
|
||||
];
|
||||
};
|
||||
|
@ -208,6 +215,7 @@
|
|||
./config/common
|
||||
./config/proxmox-vm
|
||||
sops-nix.nixosModules.sops
|
||||
./config/extra/prometheus-exporter.nix
|
||||
./config/hosts/mjolnir
|
||||
];
|
||||
};
|
||||
|
@ -218,6 +226,7 @@
|
|||
./config/common
|
||||
./config/proxmox-vm
|
||||
sops-nix.nixosModules.sops
|
||||
./config/extra/prometheus-exporter.nix
|
||||
./config/hosts/woodpecker
|
||||
];
|
||||
specialArgs = {
|
||||
|
@ -241,6 +250,7 @@
|
|||
./config/common
|
||||
./config/proxmox-vm
|
||||
sops-nix.nixosModules.sops
|
||||
./config/extra/prometheus-exporter.nix
|
||||
./config/hosts/penpot
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue