fix node and postgres exporters
This commit is contained in:
parent
176cd78d2f
commit
c866ce1cb1
4 changed files with 45 additions and 43 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -21,16 +21,4 @@
|
|||
user = "postgres";
|
||||
port = 1589;
|
||||
};
|
||||
services.prometheus.scrapeConfigs = [
|
||||
{
|
||||
job_name = "postgresql";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [
|
||||
"127.0.0.1:1589"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue