mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-27 13:21:28 +00:00
test cadvisor
This commit is contained in:
parent
af248cd73b
commit
a6c77584c2
|
@ -21,6 +21,11 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
services.cadvisor = {
|
||||||
|
enable = true;
|
||||||
|
port = 9003;
|
||||||
|
listenAddress = "127.0.0.1";
|
||||||
|
};
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 9001;
|
port = 9001;
|
||||||
|
@ -28,15 +33,10 @@ in {
|
||||||
exporters = {
|
exporters = {
|
||||||
node = {
|
node = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enabledCollectors = [ "systemd" "cgroups" ];
|
enabledCollectors = [ "systemd" ];
|
||||||
port = 9002;
|
port = 9002;
|
||||||
listenAddress = "127.0.0.1";
|
listenAddress = "127.0.0.1";
|
||||||
};
|
};
|
||||||
systemd = {
|
|
||||||
enable = true;
|
|
||||||
port = 9003;
|
|
||||||
listenAddress = "127.0.0.1";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
scrapeConfigs = [
|
scrapeConfigs = [
|
||||||
{
|
{
|
||||||
|
@ -46,7 +46,7 @@ in {
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "systemd-exporter";
|
job_name = "cadvisor";
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
targets = [ "127.0.0.1:9003" ];
|
targets = [ "127.0.0.1:9003" ];
|
||||||
}];
|
}];
|
||||||
|
|
Loading…
Reference in a new issue