fix node and postgres exporters

This commit is contained in:
Charlotte 🦝 Delenk 2023-12-11 09:36:38 +01:00
parent 176cd78d2f
commit c866ce1cb1
No known key found for this signature in database
4 changed files with 45 additions and 43 deletions

View file

@ -69,4 +69,15 @@
boot.kernel.sysctl = {
"fs.inotify.max_user_watches" = 524288;
};
services.prometheus.exporters.node = {
port = 31941;
enabledCollectors = [
"buddyinfo"
"cgroups"
"systemd"
"ethtool"
];
enable = true;
};
};
}

View file

@ -21,16 +21,4 @@
user = "postgres";
port = 1589;
};
services.prometheus.scrapeConfigs = [
{
job_name = "postgresql";
static_configs = [
{
targets = [
"127.0.0.1:1589"
];
}
];
}
];
}

View file

@ -3,19 +3,6 @@
port = 26678;
enable = true;
exporters = {
node = {
port = 31941;
enabledCollectors = [
"buddyinfo"
"cgroups"
"systemd"
"ethtool"
];
enable = true;
};
};
# ingest the published nodes
scrapeConfigs = [
{
@ -121,6 +108,20 @@
}
];
}
{
job_name = "postgresql";
static_configs = [
{
targets = [
"nas.int.chir.rs:1589"
"nixos-8gb-fsn1-1.int.chir.rs:1589"
"instance-20221213-1915.int.chir.rs:1589"
"thinkrac.int.chir.rs:1589"
"rainbow-resort.int.chir.rs:1589"
];
}
];
}
];
};
}

View file

@ -53,28 +53,30 @@
"action": "accept",
"src": ["*"],
"dst": [
"tag:nas:26678", // prometheus
"tag:nas:24545", // loki
"tag:nas:26678", // prometheus
"tag:nas:24545", // loki
"tag:nas:4317", // otel
"tag:nas:2144", // tempo
],
},
// prometheus stuff
{
"action": "accept",
"src": ["tag:nas"],
"dst": [
"*:31941",
"*:35496",
"*:6379",
"*:8905",
"*:5001",
"*:20855",
"*:58636",
"*:8008",
"*:63174",
]
},
// prometheus stuff
{
"action": "accept",
"src": ["tag:nas"],
"dst": [
"*:31941",
"*:35496",
"*:6379",
"*:8905",
"*:5001",
"*:20855",
"*:58636",
"*:8008",
"*:63174",
"*:1589",
],
},
// postgres and redis
{