deploy prometheus clan service

This commit is contained in:
2025-08-25 07:21:21 +02:00
parent a7d835cdee
commit 713c2c5b58
4 changed files with 39 additions and 26 deletions

View File

@@ -8,12 +8,14 @@
deploy.targetHost = "root@crocus";
tags = [
"garage"
"server"
];
};
genepi = {
deploy.targetHost = "root@genepi";
tags = [
"garage"
"server"
];
};
};
@@ -126,6 +128,41 @@
];
roles.server.machines = { };
};
prometheus = {
module.input = "self";
module.name = "@rpqt/prometheus";
roles.scraper.machines.genepi = { };
roles.scraper.settings = {
extraScrapeConfigs = [
{
job_name = "garage";
static_configs = [
{
labels.instance = "crocus";
targets = [ "crocus.home.rpqt.fr:3903" ];
}
{
labels.instance = "genepi";
targets = [ "genepi.home.rpqt.fr:3903" ];
}
];
}
];
};
roles.target.tags.server = { };
roles.target.settings = {
exporters = {
node = {
enabledCollectors = [
"systemd"
];
};
};
};
};
};
};
}