Enable prometheus node exporter by default #19
2 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
{config, ...}:
|
||||
Gonne marked this conversation as resolved
Outdated
|
||||
{
|
||||
imports = [ ];
|
||||
services.prometheus.exporters.node = {
|
||||
|
@ -33,4 +34,5 @@
|
|||
];
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 9100 ];
|
||||
environment.persistence.${config.impermanence.name}.directories = [ "/var/lib/${config.services.prometheus.stateDir}" ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue
At least there should be persistence for
/var/lib/${config.services.prometheus.stateDir}
(maybe the config name is slightly wrong better look it up.)