monitoring: add prometheus-exporter, promtail to

delite, blue-shell

add instance labels to garage scrape jobs
This commit is contained in:
teutat3s 2024-09-10 14:25:00 +02:00
parent 3556a653be
commit b2cb9755e1
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 37 additions and 4 deletions

View file

@ -105,8 +105,8 @@
self.nixosModules.overlays self.nixosModules.overlays
self.nixosModules.unlock-luks-on-boot self.nixosModules.unlock-luks-on-boot
self.nixosModules.core self.nixosModules.core
#self.nixosModules.prometheus-exporters self.nixosModules.prometheus-exporters
#self.nixosModules.promtail self.nixosModules.promtail
self.nixosModules.garage self.nixosModules.garage
self.nixosModules.nginx self.nixosModules.nginx
@ -122,8 +122,8 @@
self.nixosModules.overlays self.nixosModules.overlays
self.nixosModules.unlock-luks-on-boot self.nixosModules.unlock-luks-on-boot
self.nixosModules.core self.nixosModules.core
#self.nixosModules.prometheus-exporters self.nixosModules.prometheus-exporters
#self.nixosModules.promtail self.nixosModules.promtail
self.nixosModules.garage self.nixosModules.garage
self.nixosModules.nginx self.nixosModules.nginx

View file

@ -74,6 +74,22 @@
instance = "trinkgenossin"; instance = "trinkgenossin";
}; };
} }
{
targets = [
"delite.wg.${config.pub-solar-os.networking.domain}:${toString config.services.prometheus.exporters.node.port}"
];
labels = {
instance = "delite";
};
}
{
targets = [
"blue-shell.wg.${config.pub-solar-os.networking.domain}:${toString config.services.prometheus.exporters.node.port}"
];
labels = {
instance = "blue-shell";
};
}
]; ];
} }
{ {
@ -94,9 +110,26 @@
{ {
targets = [ targets = [
"trinkgenossin.wg.${config.pub-solar-os.networking.domain}:3903" "trinkgenossin.wg.${config.pub-solar-os.networking.domain}:3903"
];
labels = {
instance = "trinkgenossin";
};
}
{
targets = [
"delite.wg.${config.pub-solar-os.networking.domain}:3903" "delite.wg.${config.pub-solar-os.networking.domain}:3903"
];
labels = {
instance = "delite";
};
}
{
targets = [
"blue-shell.wg.${config.pub-solar-os.networking.domain}:3903" "blue-shell.wg.${config.pub-solar-os.networking.domain}:3903"
]; ];
labels = {
instance = "blue-shell";
};
} }
]; ];
} }