This commit is contained in:
illustris 2024-01-28 13:37:09 +05:30
parent 0f0c131294
commit c789b89793
Signed by: illustris
GPG Key ID: 56C8FC0B899FEFA3

View File

@ -134,6 +134,26 @@
enable = true;
settings.X11Forwarding = true;
};
prometheus = {
enable = true;
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
};
};
scrapeConfigs = [
{
job_name = "node_exporter";
scrape_interval = "10s";
static_configs = [
{
targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ];
}
];
}
];
};
qemuGuest.enable = true;
udev = {
# TODO: check if still needed
@ -151,6 +171,14 @@
};
zfs.autoScrub.enable = true;
};
# systemd = {
# # Disable autostart
# services.grafana = {
# wantedBy = lib.mkForce [];
# serviceConfig.SupplementaryGroups = [ config.users.groups.keys.name ];
# };
# services.docker.wantedBy = lib.mkForce [];
# };
time.timeZone = "Asia/Kolkata";