feat: several updates

This commit is contained in:
Xavier Morel
2025-12-09 14:35:20 +01:00
parent aec2e5bf63
commit a78704f30f
36 changed files with 826 additions and 150 deletions

View File

@@ -27,25 +27,27 @@ in
version = true;
};
configFile = config.age.secrets.metrics-pve.path;
listenAddress = "0.0.0.0";
openFirewall = true;
port = 9221;
};
globalConfig = {
scrape_interval = "30s";
};
scrapeConfigs = [
{
job_name = "prometheus";
static_configs = [
{
targets = [ "localhost:9090" ];
labels = {
host = tools.build_hostname "metrics";
host_ip = tools.build_ip "metrics";
service = "prometheus";
};
}
];
}
# {
# job_name = "prometheus";
# static_configs = [
# {
# targets = [ "localhost:9090" ];
# labels = {
# host = tools.build_hostname "metrics";
# host_ip = tools.build_ip "metrics";
# service = "prometheus";
# };
# }
# ];
# }
{
job_name = "proxmox";
static_configs = [