From 78a17b497576272f8e0ea045a5a44ffcf5516d7d Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 28 Aug 2024 22:20:22 +0200 Subject: Monitoring fixes --- modules/base-server.nix | 90 ++++++++++++++++++++--------------------- modules/monitoring/postgres.nix | 2 +- 2 files changed, 46 insertions(+), 46 deletions(-) (limited to 'modules') diff --git a/modules/base-server.nix b/modules/base-server.nix index 9e248e4..7473513 100755 --- a/modules/base-server.nix +++ b/modules/base-server.nix @@ -81,51 +81,51 @@ hardware.enableRedistributableFirmware = false; services = { - prometheus = { - exporters = { - node = { - enable = true; - port = 9100; - enabledCollectors = [ - #"logind" #too slow - "systemd" - "processes" - "interrupts" - # Testing: - "buddyinfo" - "cgroups" - "ksmd" - "lnstat" - "mountstats" - "network_route" - #"perf" # requires sysctl change - "qdisc" - "sysctl" - "softirqs" - "tcpstat" - ]; - disabledCollectors = [ - "textfile" - "xfs" - "zfs" - "selinux" - "cpufreq" - "btrfs" - "powersupplyclass" - "mdadm" - "tapestats" - "fibrechannel" - "cpu_vulnerabilities" - "watchdog" - "thermal_zone" - "logind" - "nfs" - "nfsd" - "infiniband" - ]; - }; - }; - }; +# prometheus = { +# exporters = { +# node = { +# enable = true; +# port = 9100; +# enabledCollectors = [ +# #"logind" #too slow +# "systemd" +# "processes" +# "interrupts" +# # Testing: +# "buddyinfo" +# "cgroups" +# "ksmd" +# "lnstat" +# "mountstats" +# "network_route" +# #"perf" # requires sysctl change +# "qdisc" +# "sysctl" +# "softirqs" +# "tcpstat" +# ]; +# disabledCollectors = [ +# "textfile" +# "xfs" +# "zfs" +# "selinux" +# "cpufreq" +# "btrfs" +# "powersupplyclass" +# "mdadm" +# "tapestats" +# "fibrechannel" +# "cpu_vulnerabilities" +# "watchdog" +# "thermal_zone" +# "logind" +# "nfs" +# "nfsd" +# "infiniband" +# ]; +# }; +# }; +# }; promtail = { enable = true; configuration = { diff --git a/modules/monitoring/postgres.nix b/modules/monitoring/postgres.nix index bbb55e6..5505892 100644 --- a/modules/monitoring/postgres.nix +++ b/modules/monitoring/postgres.nix @@ -37,7 +37,7 @@ in options = { path = builtins.fetchurl { url = "https://grafana.com/api/dashboards/14114/revisions/1/download"; - sha256 = "0qza4j8lywrj08bqbww52dgh2p2b9rkhq5p313g72i57lrlkacfl"; + sha256 = "0hk0d2nk8nh5ldd17sy3wwpn1xhyinjlsy5vgmnvpvn6g97n342z"; }; }; } -- cgit 1.4.1