tankstelle: add promtail, prometheus node-exporter

for monitoring, configure wireguard between flora-6 and tankstelle
This commit is contained in:
teutat3s 2024-06-06 12:53:49 +02:00
parent b93608a8fa
commit 4350cbf7c4
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
4 changed files with 26 additions and 0 deletions

View file

@ -82,6 +82,8 @@
./tankstelle
self.nixosModules.overlays
self.nixosModules.core
self.nixosModules.prometheus-exporters
self.nixosModules.promtail
];
};
};

View file

@ -38,6 +38,15 @@
];
persistentKeepalive = 15;
}
{
# tankstelle.pub.solar
endpoint = "80.244.242.5:51820";
publicKey = "iRTlY1lB7nPXf2eXzX8ZZDkfMmXyGjff5/joccbP8Cg=";
allowedIPs = [
"10.7.6.4/32"
"fd00:fae:fae:fae:fae:4::/96"
];
}
];
};
};

View file

@ -28,6 +28,15 @@
"fd00:fae:fae:fae:fae:1::/96"
];
}
{
# flora-6.pub.solar
endpoint = "80.71.153.210:51820";
publicKey = "jtSR5G2P/nm9s8WrVc26Xc/SQLupRxyXE+5eIeqlsTU=";
allowedIPs = [
"10.7.6.2/32"
"fd00:fae:fae:fae:fae:2::/96"
];
}
];
};
};

View file

@ -59,6 +59,12 @@
instance = "metronom";
};
}
{
targets = [ "tankstelle.wg.${config.pub-solar-os.networking.domain}:${toString config.services.prometheus.exporters.node.port}" ];
labels = {
instance = "tankstelle";
};
}
];
}
{