prometheus changes

This commit is contained in:
xunuwu 2025-01-15 12:42:34 +01:00
parent e930e354be
commit d13c5f87e1
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI

View file

@ -356,16 +356,16 @@ in {
extraFlags = ["--storage.tsdb.retention.time=30d"]; extraFlags = ["--storage.tsdb.retention.time=30d"];
scrapeConfigs = [ scrapeConfigs = [
{ {
job_name = config.networking.hostName; job_name = "node";
static_configs = [ static_configs = lib.singleton {
{ targets = ["127.0.0.1:${toString config.services.prometheus.exporters.node.port}"];
targets = [ };
"127.0.0.1:${toString config.services.prometheus.exporters.node.port}" }
"127.0.0.1:${toString config.services.prometheus.exporters.systemd.port}" {
# "127.0.0.1:${toString config.services.prometheus.exporters.wireguard.port}" job_name = "systemd";
]; static_configs = lib.singleton {
} targets = ["127.0.0.1:${toString config.services.prometheus.exporters.systemd.port}"];
]; };
} }
]; ];
}; };