add grafana stuff

This commit is contained in:
Henry Hiles 2025-10-29 12:36:48 -04:00
commit a1c4c7cf07
No known key found for this signature in database
4 changed files with 124 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ config, ... }:
{
services.prometheus = {
enable = true;
listenAddress = "127.0.0.7";
globalConfig.scrape_interval = "10s";
scrapeConfigs = [
{
job_name = "node";
static_configs = [
{
targets = with config.services.prometheus.exporters.node; [
"${toStringlistenAddress}:${toString port}"
];
}
];
}
];
exporters.node = {
enable = true;
listenAddress = "127.0.0.3";
enabledCollectors = [
"systemd"
"processes"
];
# disabledCollectors = [
# "arp"
# "bcache"
# "bonding"
# "btrfs"
# "conntrack"
# "dmi"
# "edac"
# "entropy"
# "exec"
# "fibrechannel"
# "filefd"
# "hwmon"
# "infiniband"
# "ipvs"
# "mdadm"
# "netclass"
# ];
};
};
}