deploy prometheus clan service
This commit is contained in:
parent
a7d835cdee
commit
713c2c5b58
4 changed files with 39 additions and 26 deletions
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue