mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
grafana: init
This commit is contained in:
parent
af73e70082
commit
5fd94d8540
8 changed files with 154 additions and 83 deletions
18
hosts/falkenstein/modules/monitoring/default.nix
Normal file
18
hosts/falkenstein/modules/monitoring/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.prometheus = {
|
||||
exporters = {
|
||||
node = {
|
||||
enable = true;
|
||||
enabledCollectors = [ "systemd" ];
|
||||
};
|
||||
postfix = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
config.services.prometheus.exporters.node.port
|
||||
config.services.prometheus.exporters.postfix.port
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue