Increase Prometheus data retention to 1 year
This commit is contained in:
parent
80259e6afd
commit
65452f3699
|
@ -4,96 +4,123 @@
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" =
|
||||||
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
|
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" =
|
||||||
device = "/dev/disk/by-uuid/2178-694E";
|
{ device = "/dev/disk/by-uuid/2178-694E";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/var/lib/gitea" = {
|
fileSystems."/var/lib/matrix-as-facebook" =
|
||||||
device = "vault/state_directories/gitea";
|
{ device = "vault/state_directories/matrix-as-facebook";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/var/lib/wallabag" = {
|
fileSystems."/var/lib/gitea" =
|
||||||
device = "vault/state_directories/wallabag";
|
{ device = "vault/state_directories/gitea";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/var/lib/matrix-as-facebook" = {
|
fileSystems."/var/lib/matrix-as-signal" =
|
||||||
device = "vault/state_directories/matrix-as-facebook";
|
{ device = "vault/state_directories/matrix-as-signal";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/var/lib/signald" = {
|
fileSystems."/var/lib/signald" =
|
||||||
device = "vault/state_directories/signald";
|
{ device = "vault/state_directories/signald";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/var/lib/matrix-as-signal" = {
|
fileSystems."/var/lib/wallabag" =
|
||||||
device = "vault/state_directories/matrix-as-signal";
|
{ device = "vault/state_directories/wallabag";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault" = {
|
fileSystems."/var/lib/matrix-as-telegram" =
|
||||||
device = "vault";
|
{ device = "vault/state_directories/matrix-as-telegram";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/backups" = {
|
fileSystems."/vault" =
|
||||||
device = "vault/backups";
|
{ device = "vault";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/git" = {
|
fileSystems."/vault/backups" =
|
||||||
device = "vault/git";
|
{ device = "vault/backups";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/syncthing" = {
|
fileSystems."/vault/radicale" =
|
||||||
device = "vault/syncthing";
|
{ device = "vault/radicale";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/backups/zion" = {
|
fileSystems."/vault/syncthing" =
|
||||||
device = "vault/backups/zion";
|
{ device = "vault/syncthing";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/radicale" = {
|
fileSystems."/vault/backups/zion" =
|
||||||
device = "vault/radicale";
|
{ device = "vault/backups/zion";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/backups/monolith" = {
|
fileSystems."/vault/backups/monolith" =
|
||||||
device = "vault/backups/monolith";
|
{ device = "vault/backups/monolith";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/var/lib/matrix-as-telegram" = {
|
fileSystems."/vault/mosquitto" =
|
||||||
device = "vault/state_directories/matrix-as-telegram";
|
{ device = "vault/mosquitto";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/var/lib/containers/storage/overlay" = {
|
fileSystems."/vault/git" =
|
||||||
device = "/var/lib/containers/storage/overlay";
|
{ device = "vault/git";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/containers/storage/overlay" =
|
||||||
|
{ device = "/var/lib/containers/storage/overlay";
|
||||||
fsType = "none";
|
fsType = "none";
|
||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/mosquitto" = {
|
fileSystems."/var/lib/containers/storage/overlay-containers/e6e1c8455598b60d9fb87943304626321e9c0b0adc4b56945ca9ac3eb43d67ae/userdata/shm" =
|
||||||
device = "vault/mosquitto";
|
{ device = "shm";
|
||||||
|
fsType = "tmpfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/containers/storage/overlay/1c02934ce2ad9fbc1d1818c807257afd7b4431991df42d21d792f926cc0627a1/merged" =
|
||||||
|
{ device = "overlay";
|
||||||
|
fsType = "overlay";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/containers/storage/overlay-containers/0fb5718e1e62a804b10ba708f7e88ca9f216b5a255a871dca1ab6902dad3054d/userdata/shm" =
|
||||||
|
{ device = "shm";
|
||||||
|
fsType = "tmpfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/containers/storage/overlay/659eac88c975f029dc3f854b39babbc90ae97cdf8b61f4faca6a4c7052d53019/merged" =
|
||||||
|
{ device = "overlay";
|
||||||
|
fsType = "overlay";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/prometheus2" =
|
||||||
|
{ device = "vault/state_directories/prometheus";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -106,7 +133,9 @@
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.cni-podman0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.cni-podman0.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.eth0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.eth0.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.veth2e6ad4e4.useDHCP = lib.mkDefault true;
|
# networking.interfaces.veth25ee5d84.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.veth6e46f8d7.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.veth8506af14.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.wg0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wg0.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,7 @@ with pkgs;
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 9001;
|
port = 9001;
|
||||||
|
retentionTime = "1y";
|
||||||
exporters = {
|
exporters = {
|
||||||
node = {
|
node = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in New Issue