feat: Added grafana other devices

This commit is contained in:
uttarayan21
2025-08-14 15:18:52 +05:30
parent e387716e16
commit ba40cc49eb
10 changed files with 298 additions and 803 deletions

View File

@@ -0,0 +1,42 @@
{ ... }:
{
services = {
prometheus = {
exporters = {
node = {
enable = true;
enabledCollectors = [
"systemd"
"textfile"
"filesystem"
"loadavg"
"meminfo"
"netdev"
"stat"
"time"
"uname"
"vmstat"
];
port = 9100;
};
process = {
enable = true;
settings.process_names = [
{
name = "{{.Comm}}";
cmdline = [ ".*" ];
}
];
};
};
};
};
# Open firewall ports for Prometheus exporters
networking.firewall = {
allowedTCPPorts = [
9100 # node exporter
9256 # process exporter
];
};
}