host/tatos: add more targets

This commit is contained in:
Dmitriy Pleshevskiy 2025-01-30 02:22:50 +03:00
parent 513c2327fd
commit ea0b6b36d4
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
2 changed files with 15 additions and 4 deletions
hosts/tatos
hardware-configuration
services

View file

@ -1,7 +1,6 @@
{ config, hostsPath, ... }: { ... }:
let let
istalData = import (hostsPath + "/istal/data.secret.nix");
nodeExporterPort = 40000; nodeExporterPort = 40000;
in in
{ {
@ -28,8 +27,20 @@ in
static_configs = [ static_configs = [
{ {
targets = [ targets = [
"localhost:${toString nodeExporterPort}" "tatos:${toString nodeExporterPort}"
"${istalData.addr}:${toString nodeExporterPort}" "istal:${toString nodeExporterPort}"
];
}
];
}
{
job_name = "node_production";
static_configs = [
{
targets = [
"canigou:${toString nodeExporterPort}"
"magenta:${toString nodeExporterPort}"
"sm-sd1:${toString nodeExporterPort}"
]; ];
} }
]; ];