add monitoring
Some checks failed
/ deploy (push) Failing after 11s

This commit is contained in:
toufic ar 2026-01-30 07:43:34 +02:00
parent 80c49ec8a5
commit 250eea0c18
Signed by: toufic ar
SSH key fingerprint: SHA256:/NaO5I1nG3gYKzrzSiTYIdRyaIYxDWfr1U+d+yfJ/4k
7 changed files with 15420 additions and 2 deletions

View file

@ -0,0 +1,40 @@
{config, ...}: {
services.prometheus = {
enable = true;
port = 9100;
globalConfig.scrape_interval = "1m";
scrapeConfigs = [
{
job_name = "node";
static_configs = [
{
targets = [
"localhost:${
toString
config.services.prometheus.exporters.node.port
}"
];
}
];
}
];
exporters = {
node = {
enable = true;
port = 9101;
enabledCollectors = [
"ethtool"
"softirqs"
"systemd"
"tcpstat"
"wifi"
];
extraFlags = [
"--collector.ntp.protocol-version=4"
"--no-collector.mdadm"
];
};
};
};
}