shared: enable systemd-exporter
This commit is contained in:
parent
b8f24c51b2
commit
780bc8ba52
1 changed files with 20 additions and 6 deletions
|
@ -3,16 +3,30 @@
|
||||||
caddy = {
|
caddy = {
|
||||||
virtualHosts."${config.networking.hostName}.labs.adtya.xyz" = {
|
virtualHosts."${config.networking.hostName}.labs.adtya.xyz" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
reverse_proxy /metrics 127.0.0.1:9100
|
handle /metrics {
|
||||||
|
reverse_proxy 127.0.0.1:9100
|
||||||
|
}
|
||||||
|
handle /systemd-metrics {
|
||||||
|
uri replace /systemd-metrics /metrics
|
||||||
|
reverse_proxy 127.0.0.1:9558
|
||||||
|
}
|
||||||
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
|
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
prometheus.exporters.node = {
|
prometheus.exporters = {
|
||||||
enable = true;
|
node = {
|
||||||
listenAddress = "127.0.0.1";
|
enable = true;
|
||||||
port = 9100;
|
listenAddress = "127.0.0.1";
|
||||||
enabledCollectors = [ "systemd" ];
|
port = 9100;
|
||||||
|
enabledCollectors = [ "systemd" ];
|
||||||
|
};
|
||||||
|
systemd = {
|
||||||
|
enable = true;
|
||||||
|
listenAddress = "127.0.0.1";
|
||||||
|
port = 9558;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue